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/child/fileapi/webfilewriter_impl.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/child/fileapi/webfilewriter_impl.h ('k') | content/child/ftp_directory_listing_response_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/webfilewriter_impl.cc
diff --git a/content/child/fileapi/webfilewriter_impl.cc b/content/child/fileapi/webfilewriter_impl.cc
index 701e7065a9f2895f824ee0a001cf0b6bf94f89a8..c62044e9c496030b0ea8633d7bec0e46f296ac2c 100644
--- a/content/child/fileapi/webfilewriter_impl.cc
+++ b/content/child/fileapi/webfilewriter_impl.cc
@@ -40,7 +40,8 @@ class WebFileWriterImpl::WriterBridge
waitable_event_.reset(new base::WaitableEvent(false, false));
}
- void Truncate(const GURL& path, int64 offset,
+ void Truncate(const GURL& path,
+ int64_t offset,
const StatusCallback& status_callback) {
status_callback_ = status_callback;
if (!GetFileSystemDispatcher())
@@ -50,7 +51,9 @@ class WebFileWriterImpl::WriterBridge
base::Bind(&WriterBridge::DidFinish, this));
}
- void Write(const GURL& path, const std::string& id, int64 offset,
+ void Write(const GURL& path,
+ const std::string& id,
+ int64_t offset,
const WriteCallback& write_callback,
const StatusCallback& error_callback) {
write_callback_ = write_callback;
@@ -86,7 +89,7 @@ class WebFileWriterImpl::WriterBridge
friend class base::RefCountedThreadSafe<WriterBridge>;
virtual ~WriterBridge() {}
- void DidWrite(int64 bytes, bool complete) {
+ void DidWrite(int64_t bytes, bool complete) {
written_bytes_ += bytes;
if (waitable_event_ && !complete)
return;
@@ -135,14 +138,15 @@ WebFileWriterImpl::WebFileWriterImpl(
WebFileWriterImpl::~WebFileWriterImpl() {
}
-void WebFileWriterImpl::DoTruncate(const GURL& path, int64 offset) {
+void WebFileWriterImpl::DoTruncate(const GURL& path, int64_t offset) {
RunOnMainThread(base::Bind(&WriterBridge::Truncate, bridge_,
path, offset,
base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr())));
}
-void WebFileWriterImpl::DoWrite(
- const GURL& path, const std::string& blob_id, int64 offset) {
+void WebFileWriterImpl::DoWrite(const GURL& path,
+ const std::string& blob_id,
+ int64_t offset) {
RunOnMainThread(base::Bind(&WriterBridge::Write, bridge_,
path, blob_id, offset,
base::Bind(&WebFileWriterImpl::DidWrite, AsWeakPtr()),
« no previous file with comments | « content/child/fileapi/webfilewriter_impl.h ('k') | content/child/ftp_directory_listing_response_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698