Skip to content

Commit

Permalink
Merge pull request crosswalk-project#3567 from Bysmyyr/intt
Browse files Browse the repository at this point in the history
Intt
  • Loading branch information
Mikhail Pozdnyakov committed Feb 24, 2016
2 parents 489b720 + 0f5c738 commit e3bbe70
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions runtime/browser/android/state_serializer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace {
// Sanity check value that we are restoring from a valid pickle.
// This can potentially used as an actual serialization version number in the
// future if we ever decide to support restoring from older versions.
const uint32 AW_STATE_VERSION = 20130814;
const uint32_t AW_STATE_VERSION = 20130814;

} // namespace

Expand Down Expand Up @@ -141,7 +141,7 @@ bool WriteHeaderToPickle(base::Pickle* pickle) {
}

bool RestoreHeaderFromPickle(base::PickleIterator* iterator) {
uint32 state_version = -1;
uint32_t state_version = -1;
if (!iterator->ReadUInt32(&state_version))
return false;

Expand Down Expand Up @@ -269,7 +269,7 @@ bool RestoreNavigationEntryFromPickle(base::PickleIterator* iterator,
}

{
int64 timestamp;
int64_t timestamp;
if (!iterator->ReadInt64(&timestamp))
return false;
entry->SetTimestamp(base::Time::FromInternalValue(timestamp));
Expand Down
4 changes: 2 additions & 2 deletions runtime/browser/android/xwalk_content.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,13 @@ base::android::ScopedJavaLocalRef<jbyteArray> XWalkContent::GetState(
} else {
return base::android::ToJavaByteArray(
env,
reinterpret_cast<const uint8*>(pickle.data()),
reinterpret_cast<const uint8_t*>(pickle.data()),
pickle.size());
}
}

jboolean XWalkContent::SetState(JNIEnv* env, jobject obj, jbyteArray state) {
std::vector<uint8> state_vector;
std::vector<uint8_t> state_vector;
base::android::JavaByteArrayToByteVector(env, state, &state_vector);

base::Pickle pickle(reinterpret_cast<const char*>(&state_vector[0]),
Expand Down
2 changes: 1 addition & 1 deletion runtime/browser/android/xwalk_contents_client_bridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void XWalkContentsClientBridge::AllowCertificateError(
return;
ScopedJavaLocalRef<jbyteArray> jcert = base::android::ToJavaByteArray(
env,
reinterpret_cast<const uint8*>(der_string.data()),
reinterpret_cast<const uint8_t*>(der_string.data()),
der_string.length());
ScopedJavaLocalRef<jstring> jurl(ConvertUTF8ToJavaString(
env, request_url.spec()));
Expand Down
2 changes: 1 addition & 1 deletion runtime/browser/android/xwalk_contents_io_thread_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class XWalkContentsIoThreadClient {
const std::string& user_agent,
const std::string& content_disposition,
const std::string& mime_type,
int64 content_length) = 0;
int64_t content_length) = 0;

// Called when a new login request is detected. See the documentation for
// WebViewClient.onReceivedLoginRequest for arguments. Note that |account|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void XWalkContentsIoThreadClientImpl::NewDownload(
const string& user_agent,
const string& content_disposition,
const string& mime_type,
int64 content_length) {
int64_t content_length) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (java_object_.is_null())
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class XWalkContentsIoThreadClientImpl : public XWalkContentsIoThreadClient {
const std::string& user_agent,
const std::string& content_disposition,
const std::string& mime_type,
int64 content_length) override;
int64_t content_length) override;
void NewLoginRequest(const std::string& realm,
const std::string& account,
const std::string& args) override;
Expand Down
4 changes: 2 additions & 2 deletions runtime/browser/android/xwalk_web_contents_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ void XWalkWebContentsDelegate::RendererResponsive(WebContents* source) {

bool XWalkWebContentsDelegate::AddMessageToConsole(
content::WebContents* source,
int32 level,
int32_t level,
const base::string16& message,
int32 line_no,
int32_t line_no,
const base::string16& source_id) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env);
Expand Down
4 changes: 2 additions & 2 deletions runtime/browser/android/xwalk_web_contents_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class XWalkWebContentsDelegate
void RendererResponsive(content::WebContents* source) override;

bool AddMessageToConsole(content::WebContents* source,
int32 level,
int32_t level,
const base::string16& message,
int32 line_no,
int32_t line_no,
const base::string16& source_id) override;
void HandleKeyboardEvent(
content::WebContents* source,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void RuntimeResourceDispatcherHostDelegateAndroid::DownloadStarting(
std::string user_agent;
std::string content_disposition;
std::string mime_type;
int64 content_length = request->GetExpectedContentSize();
int64_t content_length = request->GetExpectedContentSize();

if (!request->extra_request_headers().GetHeader(
net::HttpRequestHeaders::kUserAgent, &user_agent))
Expand Down
2 changes: 1 addition & 1 deletion runtime/browser/ui/taskbar_util_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void ConvertHexadecimalToIDAlphabet(std::string* id) {
// always generate the same output ID.
void GenerateId(const std::string& input, std::string* output) {
DCHECK(output);
uint8 hash[kIdSize];
uint8_t hash[kIdSize];
crypto::SHA256HashString(input, hash, sizeof(hash));
*output = base::ToLowerASCII(base::HexEncode(hash, sizeof(hash)));
ConvertHexadecimalToIDAlphabet(output);
Expand Down

0 comments on commit e3bbe70

Please sign in to comment.