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

Unified Diff: webkit/tools/test_shell/simple_file_system.h

Issue 9557010: Fix SimpleFileSystem to register a Blob when performing the CreateSnapshotFile function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_file_system.h
===================================================================
--- webkit/tools/test_shell/simple_file_system.h (revision 124276)
+++ webkit/tools/test_shell/simple_file_system.h (working copy)
@@ -25,6 +25,10 @@
class FileSystemContext;
}
+namespace webkit_blob {
+class BlobStorageController;
+}
+
class SimpleFileSystem
: public WebKit::WebFileSystem,
public base::SupportsWeakPtr<SimpleFileSystem> {
@@ -84,6 +88,10 @@
const WebKit::WebURL& path,
WebKit::WebFileSystemCallbacks* callbacks) OVERRIDE;
+ static void InitializeOnIOThread(
+ webkit_blob::BlobStorageController* blob_storage_controller);
+ static void CleanupOnIOThread();
+
private:
// Helpers.
fileapi::FileSystemOperationInterface* GetNewOperation(
@@ -99,7 +107,8 @@
fileapi::FileSystemContext::OpenFileSystemCallback OpenFileSystemHandler(
WebKit::WebFileSystemCallbacks* callbacks);
fileapi::FileSystemOperationInterface::SnapshotFileCallback
- SnapshotFileHandler(WebKit::WebFileSystemCallbacks* callbacks);
+ SnapshotFileHandler(const GURL& blob_url,
+ WebKit::WebFileSystemCallbacks* callbacks);
void DidFinish(WebKit::WebFileSystemCallbacks* callbacks,
base::PlatformFileError result);
void DidGetMetadata(WebKit::WebFileSystemCallbacks* callbacks,
@@ -115,6 +124,7 @@
base::PlatformFileError result,
const std::string& name, const GURL& root);
void DidCreateSnapshotFile(
+ const GURL& blob_url,
WebKit::WebFileSystemCallbacks* callbacks,
base::PlatformFileError result,
const base::PlatformFileInfo& info,
« no previous file with comments | « no previous file | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698