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()), |