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

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

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 | « no previous file | chrome/browser/chromeos/drive/file_system_proxy.cc » ('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.h
diff --git a/chrome/browser/chromeos/drive/file_system_proxy.h b/chrome/browser/chromeos/drive/file_system_proxy.h
index 7e825abd186dfc0f67249c2194491c0b10767c47..b10363f356eb3b344a06f0fb931242df4f7744ff 100644
--- a/chrome/browser/chromeos/drive/file_system_proxy.h
+++ b/chrome/browser/chromeos/drive/file_system_proxy.h
@@ -22,6 +22,8 @@ typedef std::vector<DriveEntryProto> DriveEntryProtoVector;
// Implementation of File API's remote file system proxy for Drive file system.
class FileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
public:
+ using fileapi::RemoteFileSystemProxyInterface::OpenFileCallback;
+
// |file_system| is the DriveFileSystem instance owned by DriveSystemService.
explicit FileSystemProxy(DriveFileSystemInterface* file_system);
@@ -78,8 +80,7 @@ class FileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
const fileapi::FileSystemURL& url,
int file_flags,
base::ProcessHandle peer_handle,
- const fileapi::FileSystemOperation::OpenFileCallback&
- callback) OVERRIDE;
+ const OpenFileCallback& callback) OVERRIDE;
virtual void NotifyCloseFile(const fileapi::FileSystemURL& url) OVERRIDE;
virtual void TouchFile(
const fileapi::FileSystemURL& url,
@@ -176,7 +177,7 @@ class FileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
void OnOpenFileForWriting(
int file_flags,
base::ProcessHandle peer_handle,
- const fileapi::FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
FileError file_error,
const base::FilePath& local_cache_path);
@@ -185,7 +186,7 @@ class FileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
const base::FilePath& file_path,
int file_flags,
base::ProcessHandle peer_handle,
- const fileapi::FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
FileError file_error);
// Invoked during OpenFile() operation when base::PLATFORM_FILE_OPEN_TRUNCATED
@@ -193,7 +194,7 @@ class FileSystemProxy : public fileapi::RemoteFileSystemProxyInterface {
// finished on FILE thread.
void OnOpenAndTruncate(
base::ProcessHandle peer_handle,
- const fileapi::FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
base::PlatformFile* platform_file,
base::PlatformFileError* truncate_result);
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_system_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698