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

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

Issue 11416382: ********** Content tests with blob hacking. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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
Index: webkit/tools/test_shell/test_shell_webblobregistry_impl.h
===================================================================
--- webkit/tools/test_shell/test_shell_webblobregistry_impl.h (revision 186525)
+++ webkit/tools/test_shell/test_shell_webblobregistry_impl.h (working copy)
@@ -12,7 +12,7 @@
namespace webkit_blob {
class BlobData;
-class BlobStorageController;
+class BlobStorageContext;
}
class TestShellWebBlobRegistryImpl
@@ -20,17 +20,19 @@
public base::RefCountedThreadSafe<TestShellWebBlobRegistryImpl> {
public:
static void InitializeOnIOThread(
- webkit_blob::BlobStorageController* blob_storage_controller);
+ webkit_blob::BlobStorageContext* blob_storage_context);
static void Cleanup();
TestShellWebBlobRegistryImpl();
- // See WebBlobRegistry.h for documentation on these functions.
- virtual void registerBlobURL(const WebKit::WebURL& url,
- WebKit::WebBlobData& data);
- virtual void registerBlobURL(const WebKit::WebURL& url,
- const WebKit::WebURL& src_url);
- virtual void unregisterBlobURL(const WebKit::WebURL& url);
+ // WebBlobRegistry interface implementation.
+ virtual void registerBlobData(const WebKit::WebString& uuid,
+ const WebKit::WebBlobData&);
+ virtual void addBlobDataRef(const WebKit::WebString& uuid);
+ virtual void removeBlobDataRef(const WebKit::WebString& uuid);
+ virtual void registerPublicBlobURL(const WebKit::WebURL&,
+ const WebKit::WebString& uuid);
+ virtual void revokePublicBlobURL(const WebKit::WebURL&);
protected:
virtual ~TestShellWebBlobRegistryImpl() {}
@@ -38,10 +40,12 @@
private:
friend class base::RefCountedThreadSafe<TestShellWebBlobRegistryImpl>;
- // Run on I/O thread.
- void AddFinishedBlob(const GURL& url, webkit_blob::BlobData* blob_data);
- void CloneBlob(const GURL& url, const GURL& src_url);
- void RemoveBlob(const GURL& url);
+ // All processing for WebBlobRegistry calls are serialized on the I/O thread.
+ void AddFinishedBlob(webkit_blob::BlobData* blob_data);
+ void AddBlobDataRef(const std::string& uuid);
+ void RemoveBlobDataRef(const std::string& uuid);
+ void RegisterPublicBlobURL(const GURL& url, const std::string& uuid);
+ void RevokePublicBlobURL(const GURL& url);
DISALLOW_COPY_AND_ASSIGN(TestShellWebBlobRegistryImpl);
};
« no previous file with comments | « webkit/tools/test_shell/test_shell_request_context.cc ('k') | webkit/tools/test_shell/test_shell_webblobregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698