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

Side by Side Diff: webkit/fileapi/file_system_operation_interface.h

Issue 8999017: Add CreateFileSystemOperation() method to FileSystemContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang build fix Created 8 years, 11 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
« no previous file with comments | « webkit/fileapi/file_system_operation.cc ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 9
10 namespace base { 10 namespace base {
11 class Time; 11 class Time;
12 } // namespace base 12 } // namespace base
13 13
14 namespace net { 14 namespace net {
15 class URLRequest; 15 class URLRequest;
16 class URLRequestContext; 16 class URLRequestContext;
17 } // namespace net 17 } // namespace net
18 18
19 class GURL; 19 class GURL;
20 20
21 namespace fileapi { 21 namespace fileapi {
22 22
23 class FileSystemCallbackDispatcher; 23 class FileSystemCallbackDispatcher;
24 class FileSystemOperation;
24 25
25 // The interface class for FileSystemOperation implementations. 26 // The interface class for FileSystemOperation implementations.
26 // 27 //
27 // This interface defines file system operations required to implement 28 // This interface defines file system operations required to implement
28 // "File API: Directories and System" 29 // "File API: Directories and System"
29 // http://www.w3.org/TR/file-system-api/ 30 // http://www.w3.org/TR/file-system-api/
30 // 31 //
31 // DESIGN NOTES 32 // DESIGN NOTES
32 // 33 //
33 // This class is designed to 34 // This class is designed to
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // values of base::PlatformFileFlags. 139 // values of base::PlatformFileFlags.
139 // 140 //
140 // |peer_handle| is the process handle of a pepper plugin process, which 141 // |peer_handle| is the process handle of a pepper plugin process, which
141 // is necessary for underlying IPC calls with Pepper plugins. 142 // is necessary for underlying IPC calls with Pepper plugins.
142 // 143 //
143 // This function is used only by Pepper as of writing. 144 // This function is used only by Pepper as of writing.
144 virtual void OpenFile( 145 virtual void OpenFile(
145 const GURL& path, 146 const GURL& path,
146 int file_flags, 147 int file_flags,
147 base::ProcessHandle peer_handle) = 0; 148 base::ProcessHandle peer_handle) = 0;
149
150 // For downcasting to FileSystemOperation.
151 // TODO(kinuko): this hack should go away once appropriate upload-stream
152 // handling based on element types is supported.
153 virtual FileSystemOperation* AsFileSystemOperation() = 0;
148 }; 154 };
149 155
150 } // namespace fileapi 156 } // namespace fileapi
151 157
152 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_ 158 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_INTERFACE_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation.cc ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698