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

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

Issue 12084077: FileSystem mods: Changes to snapshot file creation to remove dependencies on blobs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/plugins/ppapi/file_callbacks.cc ('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 <vector> 8 #include <vector>
9 #include "base/files/file_util_proxy.h" 9 #include "base/files/file_util_proxy.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 WebKit::WebFileSystemCallbacks*) OVERRIDE; 81 WebKit::WebFileSystemCallbacks*) OVERRIDE;
82 virtual void directoryExists( 82 virtual void directoryExists(
83 const WebKit::WebURL& path, 83 const WebKit::WebURL& path,
84 WebKit::WebFileSystemCallbacks*) OVERRIDE; 84 WebKit::WebFileSystemCallbacks*) OVERRIDE;
85 virtual void readDirectory( 85 virtual void readDirectory(
86 const WebKit::WebURL& path, 86 const WebKit::WebURL& path,
87 WebKit::WebFileSystemCallbacks*) OVERRIDE; 87 WebKit::WebFileSystemCallbacks*) OVERRIDE;
88 virtual WebKit::WebFileWriter* createFileWriter( 88 virtual WebKit::WebFileWriter* createFileWriter(
89 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE; 89 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE;
90 virtual void createSnapshotFileAndReadMetadata( 90 virtual void createSnapshotFileAndReadMetadata(
91 const WebKit::WebURL& path,
92 WebKit::WebFileSystemCallbacks* callbacks);
93
94 // DEPRECATED
95 virtual void createSnapshotFileAndReadMetadata(
91 const WebKit::WebURL& blobURL, 96 const WebKit::WebURL& blobURL,
92 const WebKit::WebURL& path, 97 const WebKit::WebURL& path,
93 WebKit::WebFileSystemCallbacks* callbacks) OVERRIDE; 98 WebKit::WebFileSystemCallbacks* callbacks);
94 99
95 static void InitializeOnIOThread( 100 static void InitializeOnIOThread(
96 webkit_blob::BlobStorageController* blob_storage_controller); 101 webkit_blob::BlobStorageController* blob_storage_controller);
97 static void CleanupOnIOThread(); 102 static void CleanupOnIOThread();
98 103
99 private: 104 private:
100 enum FilePermission { 105 enum FilePermission {
101 FILE_PERMISSION_READ, 106 FILE_PERMISSION_READ,
102 FILE_PERMISSION_WRITE, 107 FILE_PERMISSION_WRITE,
103 FILE_PERMISSION_CREATE, 108 FILE_PERMISSION_CREATE,
(...skipping 10 matching lines...) Expand all
114 WebKit::WebFileSystemCallbacks* callbacks); 119 WebKit::WebFileSystemCallbacks* callbacks);
115 fileapi::FileSystemOperation::GetMetadataCallback GetMetadataHandler( 120 fileapi::FileSystemOperation::GetMetadataCallback GetMetadataHandler(
116 WebKit::WebFileSystemCallbacks* callbacks); 121 WebKit::WebFileSystemCallbacks* callbacks);
117 fileapi::FileSystemOperation::ReadDirectoryCallback 122 fileapi::FileSystemOperation::ReadDirectoryCallback
118 ReadDirectoryHandler(WebKit::WebFileSystemCallbacks* callbacks); 123 ReadDirectoryHandler(WebKit::WebFileSystemCallbacks* callbacks);
119 fileapi::FileSystemContext::OpenFileSystemCallback OpenFileSystemHandler( 124 fileapi::FileSystemContext::OpenFileSystemCallback OpenFileSystemHandler(
120 WebKit::WebFileSystemCallbacks* callbacks); 125 WebKit::WebFileSystemCallbacks* callbacks);
121 fileapi::FileSystemContext::DeleteFileSystemCallback DeleteFileSystemHandler( 126 fileapi::FileSystemContext::DeleteFileSystemCallback DeleteFileSystemHandler(
122 WebKit::WebFileSystemCallbacks* callbacks); 127 WebKit::WebFileSystemCallbacks* callbacks);
123 fileapi::FileSystemOperation::SnapshotFileCallback 128 fileapi::FileSystemOperation::SnapshotFileCallback
124 SnapshotFileHandler(const GURL& blob_url, 129 SnapshotFileHandler(WebKit::WebFileSystemCallbacks* callbacks);
125 WebKit::WebFileSystemCallbacks* callbacks); 130 fileapi::FileSystemOperation::SnapshotFileCallback
131 SnapshotFileHandler_Deprecated(
132 const GURL& blob_url,
133 WebKit::WebFileSystemCallbacks* callbacks);
126 void DidFinish(WebKit::WebFileSystemCallbacks* callbacks, 134 void DidFinish(WebKit::WebFileSystemCallbacks* callbacks,
127 base::PlatformFileError result); 135 base::PlatformFileError result);
128 void DidGetMetadata(WebKit::WebFileSystemCallbacks* callbacks, 136 void DidGetMetadata(WebKit::WebFileSystemCallbacks* callbacks,
129 base::PlatformFileError result, 137 base::PlatformFileError result,
130 const base::PlatformFileInfo& info, 138 const base::PlatformFileInfo& info,
131 const base::FilePath& platform_path); 139 const base::FilePath& platform_path);
132 void DidReadDirectory( 140 void DidReadDirectory(
133 WebKit::WebFileSystemCallbacks* callbacks, 141 WebKit::WebFileSystemCallbacks* callbacks,
134 base::PlatformFileError result, 142 base::PlatformFileError result,
135 const std::vector<base::FileUtilProxy::Entry>& entries, 143 const std::vector<base::FileUtilProxy::Entry>& entries,
136 bool has_more); 144 bool has_more);
137 void DidOpenFileSystem(WebKit::WebFileSystemCallbacks* callbacks, 145 void DidOpenFileSystem(WebKit::WebFileSystemCallbacks* callbacks,
138 base::PlatformFileError result, 146 base::PlatformFileError result,
139 const std::string& name, const GURL& root); 147 const std::string& name, const GURL& root);
140 void DidDeleteFileSystem(WebKit::WebFileSystemCallbacks* callbacks, 148 void DidDeleteFileSystem(WebKit::WebFileSystemCallbacks* callbacks,
141 base::PlatformFileError result); 149 base::PlatformFileError result);
142 void DidCreateSnapshotFile( 150 void DidCreateSnapshotFile(
151 WebKit::WebFileSystemCallbacks* callbacks,
152 base::PlatformFileError result,
153 const base::PlatformFileInfo& info,
154 const base::FilePath& platform_path,
155 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
156 void DidCreateSnapshotFile_Deprecated(
143 const GURL& blob_url, 157 const GURL& blob_url,
144 WebKit::WebFileSystemCallbacks* callbacks, 158 WebKit::WebFileSystemCallbacks* callbacks,
145 base::PlatformFileError result, 159 base::PlatformFileError result,
146 const base::PlatformFileInfo& info, 160 const base::PlatformFileInfo& info,
147 const base::FilePath& platform_path, 161 const base::FilePath& platform_path,
148 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 162 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref);
149 163
150 // A temporary directory for FileSystem API. 164 // A temporary directory for FileSystem API.
151 base::ScopedTempDir file_system_dir_; 165 base::ScopedTempDir file_system_dir_;
152 166
153 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 167 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
154 168
155 DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem); 169 DISALLOW_COPY_AND_ASSIGN(SimpleFileSystem);
156 }; 170 };
157 171
158 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ 172 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/file_callbacks.cc ('k') | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698