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

Unified Diff: chrome/browser/chromeos/drive/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: chromeos part 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
Index: chrome/browser/chromeos/drive/drive_file_system_proxy.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_system_proxy.cc b/chrome/browser/chromeos/drive/drive_file_system_proxy.cc
index da00608d5a65e1e7621a8dfc1110be8e2a01ea3b..72532ab9809aa815896971b52bbd406d37707ee6 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_proxy.cc
+++ b/chrome/browser/chromeos/drive/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
// DriveFileSystemProxy::OpenFile().
void OnGetFileByPathForOpen(
- const FileSystemOperation::OpenFileCallback& callback,
+ const OpenFileCallback& callback,
int file_flags,
base::ProcessHandle peer_handle,
FileError file_error,
@@ -380,7 +383,7 @@ void DriveFileSystemProxy::Truncate(
void DriveFileSystemProxy::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));
@@ -414,7 +417,7 @@ void DriveFileSystemProxy::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 =
@@ -495,7 +498,7 @@ void DriveFileSystemProxy::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;

Powered by Google App Engine
This is Rietveld 408576698