Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: content/browser/download/save_item.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/save_item.h ('k') | content/browser/download/save_package.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_item.cc
diff --git a/content/browser/download/save_item.cc b/content/browser/download/save_item.cc
index a8aeefdcaefd7a41848040821e8f79c892680def..604d659643528166d6c7488391060d3e588b2edd 100644
--- a/content/browser/download/save_item.cc
+++ b/content/browser/download/save_item.cc
@@ -52,7 +52,7 @@ void SaveItem::Start() {
// If we've received more data than we were expecting (bad server info?),
// revert to 'unknown size mode'.
-void SaveItem::UpdateSize(int64 bytes_so_far) {
+void SaveItem::UpdateSize(int64_t bytes_so_far) {
received_bytes_ = bytes_so_far;
if (received_bytes_ >= total_bytes_)
total_bytes_ = 0;
@@ -61,7 +61,7 @@ void SaveItem::UpdateSize(int64 bytes_so_far) {
// Updates from the file thread may have been posted while this saving job
// was being canceled in the UI thread, so we'll accept them unless we're
// complete.
-void SaveItem::Update(int64 bytes_so_far) {
+void SaveItem::Update(int64_t bytes_so_far) {
if (state_ != IN_PROGRESS) {
NOTREACHED();
return;
@@ -86,7 +86,7 @@ void SaveItem::Cancel() {
}
// Set finish state for a save item
-void SaveItem::Finish(int64 size, bool is_success) {
+void SaveItem::Finish(int64_t size, bool is_success) {
DCHECK(has_final_name() || !is_success_);
state_ = COMPLETE;
is_success_ = is_success;
@@ -122,7 +122,7 @@ void SaveItem::Rename(const base::FilePath& full_path) {
has_final_name_ = true;
}
-void SaveItem::SetTotalBytes(int64 total_bytes) {
+void SaveItem::SetTotalBytes(int64_t total_bytes) {
DCHECK_EQ(0, total_bytes_);
total_bytes_ = total_bytes;
}
« no previous file with comments | « content/browser/download/save_item.h ('k') | content/browser/download/save_package.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698