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

Unified Diff: webkit/browser/fileapi/file_system_operation_runner.cc

Issue 33053002: Pepper: Move FileIO host from renderer to browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 1 month 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 | « webkit/browser/fileapi/file_system_operation_runner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/file_system_operation_runner.cc
diff --git a/webkit/browser/fileapi/file_system_operation_runner.cc b/webkit/browser/fileapi/file_system_operation_runner.cc
index 8903187d0b3445e504bc6fa6c3c12f85c077c495..d552a78319342df4560ac2bd517e8c7a63081c09 100644
--- a/webkit/browser/fileapi/file_system_operation_runner.cc
+++ b/webkit/browser/fileapi/file_system_operation_runner.cc
@@ -339,7 +339,6 @@ OperationID FileSystemOperationRunner::TouchFile(
OperationID FileSystemOperationRunner::OpenFile(
const FileSystemURL& url,
int file_flags,
- base::ProcessHandle peer_handle,
const OpenFileCallback& callback) {
base::PlatformFileError error = base::PLATFORM_FILE_OK;
FileSystemOperation* operation =
@@ -348,7 +347,7 @@ OperationID FileSystemOperationRunner::OpenFile(
OperationHandle handle = BeginOperation(operation, scope.AsWeakPtr());
if (!operation) {
DidOpenFile(handle, callback, error, base::kInvalidPlatformFileValue,
- base::Closure(), base::ProcessHandle());
+ base::Closure());
return handle.id;
}
if (file_flags &
@@ -362,7 +361,7 @@ OperationID FileSystemOperationRunner::OpenFile(
PrepareForRead(handle.id, url);
}
operation->OpenFile(
- url, file_flags, peer_handle,
+ url, file_flags,
base::Bind(&FileSystemOperationRunner::DidOpenFile, AsWeakPtr(),
handle, callback));
return handle.id;
@@ -578,17 +577,16 @@ void FileSystemOperationRunner::DidOpenFile(
const OpenFileCallback& callback,
base::PlatformFileError rv,
base::PlatformFile file,
- const base::Closure& on_close_callback,
- base::ProcessHandle peer_handle) {
+ const base::Closure& on_close_callback) {
if (handle.scope) {
finished_operations_.insert(handle.id);
base::MessageLoopProxy::current()->PostTask(
FROM_HERE, base::Bind(&FileSystemOperationRunner::DidOpenFile,
AsWeakPtr(), handle, callback, rv, file,
- on_close_callback, peer_handle));
+ on_close_callback));
return;
}
- callback.Run(rv, file, on_close_callback, peer_handle);
+ callback.Run(rv, file, on_close_callback);
FinishOperation(handle.id);
}
« no previous file with comments | « webkit/browser/fileapi/file_system_operation_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698