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

Unified Diff: chrome/browser/chromeos/drive/file_system_proxy.cc

Issue 14472008: [FileAPI] Add file open ID and close callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 months 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 | « chrome/browser/chromeos/drive/file_system_proxy.h ('k') | content/browser/fileapi/fileapi_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system_proxy.cc
diff --git a/chrome/browser/chromeos/drive/file_system_proxy.cc b/chrome/browser/chromeos/drive/file_system_proxy.cc
index 9f8f27d7ea07d14f59b08c4eb1c0bc0224c6d250..f085c0c6c17da84537b109e641a464dc35bf2814 100644
--- a/chrome/browser/chromeos/drive/file_system_proxy.cc
+++ b/chrome/browser/chromeos/drive/file_system_proxy.cc
@@ -33,12 +33,15 @@ namespace drive {
namespace {
+typedef fileapi::RemoteFileSystemProxyInterface::OpenFileCallback
+ OpenFileCallback;
+
const char kFeedField[] = "feed";
// Helper function to run reply on results of base::CreatePlatformFile() on
// IO thread.
void OnPlatformFileOpened(
- const FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
base::ProcessHandle peer_handle,
base::PlatformFileError* open_error,
base::PlatformFile platform_file) {
@@ -48,7 +51,7 @@ void OnPlatformFileOpened(
// Helper function to run OpenFileCallback from
// FileSystemProxy::OpenFile().
void OnGetFileByPathForOpen(
- const FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
int file_flags,
base::ProcessHandle peer_handle,
FileError file_error,
@@ -395,7 +398,7 @@ void FileSystemProxy::Truncate(
void FileSystemProxy::OnOpenFileForWriting(
int file_flags,
base::ProcessHandle peer_handle,
- const FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
FileError file_error,
const base::FilePath& local_cache_path) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -429,7 +432,7 @@ void FileSystemProxy::OnCreateFileForOpen(
const base::FilePath& file_path,
int file_flags,
base::ProcessHandle peer_handle,
- const FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
FileError file_error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
base::PlatformFileError create_result =
@@ -510,7 +513,7 @@ void FileSystemProxy::OpenFile(
const FileSystemURL& file_url,
int file_flags,
base::ProcessHandle peer_handle,
- const FileSystemOperation::OpenFileCallback& callback) {
+ const OpenFileCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
base::FilePath file_path;
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_proxy.h ('k') | content/browser/fileapi/fileapi_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698