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

Side by Side Diff: webkit/chromeos/fileapi/remote_file_system_operation.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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_
7 7
8 #include "webkit/fileapi/file_system_operation.h" 8 #include "webkit/fileapi/file_system_operation.h"
9 #include "webkit/fileapi/file_writer_delegate.h" 9 #include "webkit/fileapi/file_writer_delegate.h"
10 #include "webkit/fileapi/remote_file_system_proxy.h" 10 #include "webkit/fileapi/remote_file_system_proxy.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 FileWriterDelegate::WriteProgressStatus write_status); 107 FileWriterDelegate::WriteProgressStatus write_status);
108 void DidFinishFileOperation(const StatusCallback& callback, 108 void DidFinishFileOperation(const StatusCallback& callback,
109 base::PlatformFileError rv); 109 base::PlatformFileError rv);
110 void DidCreateSnapshotFile( 110 void DidCreateSnapshotFile(
111 const SnapshotFileCallback& callback, 111 const SnapshotFileCallback& callback,
112 base::PlatformFileError result, 112 base::PlatformFileError result,
113 const base::PlatformFileInfo& file_info, 113 const base::PlatformFileInfo& file_info,
114 const base::FilePath& platform_path, 114 const base::FilePath& platform_path,
115 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 115 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
116 void DidOpenFile( 116 void DidOpenFile(
117 const fileapi::FileSystemURL& url,
117 const OpenFileCallback& callback, 118 const OpenFileCallback& callback,
118 base::PlatformFileError result, 119 base::PlatformFileError result,
119 base::PlatformFile file, 120 base::PlatformFile file,
120 base::ProcessHandle peer_handle); 121 base::ProcessHandle peer_handle);
121 122
122 123
123 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy_; 124 scoped_refptr<fileapi::RemoteFileSystemProxyInterface> remote_proxy_;
124 // A flag to make sure we call operation only once per instance. 125 // A flag to make sure we call operation only once per instance.
125 OperationType pending_operation_; 126 OperationType pending_operation_;
126 scoped_ptr<fileapi::FileWriterDelegate> file_writer_delegate_; 127 scoped_ptr<fileapi::FileWriterDelegate> file_writer_delegate_;
127 128
128 WriteCallback write_callback_; 129 WriteCallback write_callback_;
129 StatusCallback cancel_callback_; 130 StatusCallback cancel_callback_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation); 132 DISALLOW_COPY_AND_ASSIGN(RemoteFileSystemOperation);
132 }; 133 };
133 134
134 } // namespace chromeos 135 } // namespace chromeos
135 136
136 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_ 137 #endif // WEBKIT_CHROMEOS_FILEAPI_REMOTE_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | webkit/chromeos/fileapi/remote_file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698