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

Side by Side Diff: webkit/tools/test_shell/simple_file_system.h

Issue 10870040: Rename FileSystemOperationInterface to FileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing Created 8 years, 3 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/webkit_fileapi.gypi ('k') | webkit/tools/test_shell/simple_file_system.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_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_
7 7
8 #include "base/file_util_proxy.h" 8 #include "base/file_util_proxy.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/scoped_temp_dir.h" 11 #include "base/scoped_temp_dir.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h"
13 #include "webkit/fileapi/file_system_context.h" 13 #include "webkit/fileapi/file_system_context.h"
14 #include "webkit/fileapi/file_system_operation_interface.h" 14 #include "webkit/fileapi/file_system_operation.h"
15 #include "webkit/fileapi/file_system_types.h" 15 #include "webkit/fileapi/file_system_types.h"
16 #include <vector> 16 #include <vector>
17 17
18 namespace WebKit { 18 namespace WebKit {
19 class WebFileSystemCallbacks; 19 class WebFileSystemCallbacks;
20 class WebFrame; 20 class WebFrame;
21 class WebURL; 21 class WebURL;
22 } 22 }
23 23
24 namespace fileapi { 24 namespace fileapi {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 private: 99 private:
100 enum FilePermission { 100 enum FilePermission {
101 FILE_PERMISSION_READ, 101 FILE_PERMISSION_READ,
102 FILE_PERMISSION_WRITE, 102 FILE_PERMISSION_WRITE,
103 FILE_PERMISSION_CREATE, 103 FILE_PERMISSION_CREATE,
104 }; 104 };
105 105
106 // Helpers. 106 // Helpers.
107 bool HasFilePermission(const fileapi::FileSystemURL& url, 107 bool HasFilePermission(const fileapi::FileSystemURL& url,
108 FilePermission permission); 108 FilePermission permission);
109 fileapi::FileSystemOperationInterface* GetNewOperation( 109 fileapi::FileSystemOperation* GetNewOperation(
110 const fileapi::FileSystemURL& url); 110 const fileapi::FileSystemURL& url);
111 111
112 // Callback Handlers 112 // Callback Handlers
113 fileapi::FileSystemOperationInterface::StatusCallback FinishHandler( 113 fileapi::FileSystemOperation::StatusCallback FinishHandler(
114 WebKit::WebFileSystemCallbacks* callbacks); 114 WebKit::WebFileSystemCallbacks* callbacks);
115 fileapi::FileSystemOperationInterface::GetMetadataCallback GetMetadataHandler( 115 fileapi::FileSystemOperation::GetMetadataCallback GetMetadataHandler(
116 WebKit::WebFileSystemCallbacks* callbacks); 116 WebKit::WebFileSystemCallbacks* callbacks);
117 fileapi::FileSystemOperationInterface::ReadDirectoryCallback 117 fileapi::FileSystemOperation::ReadDirectoryCallback
118 ReadDirectoryHandler(WebKit::WebFileSystemCallbacks* callbacks); 118 ReadDirectoryHandler(WebKit::WebFileSystemCallbacks* callbacks);
119 fileapi::FileSystemContext::OpenFileSystemCallback OpenFileSystemHandler( 119 fileapi::FileSystemContext::OpenFileSystemCallback OpenFileSystemHandler(
120 WebKit::WebFileSystemCallbacks* callbacks); 120 WebKit::WebFileSystemCallbacks* callbacks);
121 fileapi::FileSystemContext::DeleteFileSystemCallback DeleteFileSystemHandler( 121 fileapi::FileSystemContext::DeleteFileSystemCallback DeleteFileSystemHandler(
122 WebKit::WebFileSystemCallbacks* callbacks); 122 WebKit::WebFileSystemCallbacks* callbacks);
123 fileapi::FileSystemOperationInterface::SnapshotFileCallback 123 fileapi::FileSystemOperation::SnapshotFileCallback
124 SnapshotFileHandler(const GURL& blob_url, 124 SnapshotFileHandler(const GURL& blob_url,
125 WebKit::WebFileSystemCallbacks* callbacks); 125 WebKit::WebFileSystemCallbacks* callbacks);
126 void DidFinish(WebKit::WebFileSystemCallbacks* callbacks, 126 void DidFinish(WebKit::WebFileSystemCallbacks* callbacks,
127 base::PlatformFileError result); 127 base::PlatformFileError result);
128 void DidGetMetadata(WebKit::WebFileSystemCallbacks* callbacks, 128 void DidGetMetadata(WebKit::WebFileSystemCallbacks* callbacks,
129 base::PlatformFileError result, 129 base::PlatformFileError result,
130 const base::PlatformFileInfo& info, 130 const base::PlatformFileInfo& info,
131 const FilePath& platform_path); 131 const FilePath& platform_path);
132 void DidReadDirectory( 132 void DidReadDirectory(
133 WebKit::WebFileSystemCallbacks* callbacks, 133 WebKit::WebFileSystemCallbacks* callbacks,
(...skipping 15 matching lines...) Expand all
149 149
150 // A temporary directory for FileSystem API. 150 // A temporary directory for FileSystem API.
151 ScopedTempDir file_system_dir_; 151 ScopedTempDir file_system_dir_;
152 152
153 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 153 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
154 154
155 DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem); 155 DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem);
156 }; 156 };
157 157
158 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ 158 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/webkit_fileapi.gypi ('k') | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698