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

Unified Diff: content/child/fileapi/file_system_dispatcher.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/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/file_system_dispatcher.cc
diff --git a/content/child/fileapi/file_system_dispatcher.cc b/content/child/fileapi/file_system_dispatcher.cc
index 8d5a42c0461d6156586ff0f20180346f6a19dc5d..1fdf49527306648e2070be452c1b961c78af0f5f 100644
--- a/content/child/fileapi/file_system_dispatcher.cc
+++ b/content/child/fileapi/file_system_dispatcher.cc
@@ -6,6 +6,7 @@
#include "base/callback.h"
#include "base/files/file_util.h"
+#include "base/macros.h"
#include "base/process/process.h"
#include "content/child/child_thread_impl.h"
#include "content/common/fileapi/file_system_messages.h"
@@ -111,7 +112,7 @@ class FileSystemDispatcher::CallbackDispatcher {
resolve_callback_.Run(info, file_path, is_directory);
}
- void DidWrite(int64 bytes, bool complete) {
+ void DidWrite(int64_t bytes, bool complete) {
write_callback_.Run(bytes, complete);
}
@@ -268,11 +269,10 @@ void FileSystemDispatcher::ReadDirectory(
new FileSystemHostMsg_ReadDirectory(request_id, path));
}
-void FileSystemDispatcher::Truncate(
- const GURL& path,
- int64 offset,
- int* request_id_out,
- const StatusCallback& callback) {
+void FileSystemDispatcher::Truncate(const GURL& path,
+ int64_t offset,
+ int* request_id_out,
+ const StatusCallback& callback) {
int request_id = dispatchers_.Add(CallbackDispatcher::Create(callback));
ChildThreadImpl::current()->Send(
new FileSystemHostMsg_Truncate(request_id, path, offset));
@@ -281,13 +281,12 @@ void FileSystemDispatcher::Truncate(
*request_id_out = request_id;
}
-void FileSystemDispatcher::Write(
- const GURL& path,
- const std::string& blob_id,
- int64 offset,
- int* request_id_out,
- const WriteCallback& success_callback,
- const StatusCallback& error_callback) {
+void FileSystemDispatcher::Write(const GURL& path,
+ const std::string& blob_id,
+ int64_t offset,
+ int* request_id_out,
+ const WriteCallback& success_callback,
+ const StatusCallback& error_callback) {
int request_id = dispatchers_.Add(
CallbackDispatcher::Create(success_callback, error_callback));
ChildThreadImpl::current()->Send(
@@ -391,8 +390,9 @@ void FileSystemDispatcher::OnDidFail(
dispatchers_.Remove(request_id);
}
-void FileSystemDispatcher::OnDidWrite(
- int request_id, int64 bytes, bool complete) {
+void FileSystemDispatcher::OnDidWrite(int request_id,
+ int64_t bytes,
+ bool complete) {
CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
DCHECK(dispatcher);
dispatcher->DidWrite(bytes, complete);
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698