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

Unified Diff: content/child/webblobregistry_impl.h

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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: content/child/webblobregistry_impl.h
diff --git a/content/child/webblobregistry_impl.h b/content/child/webblobregistry_impl.h
index ddc7a02a21beb02c404ef935f2f8a5fb96fe4dff..322b0d68a5183ea7e6dd9cd6c8d9e9eaddc17b13 100644
--- a/content/child/webblobregistry_impl.h
+++ b/content/child/webblobregistry_impl.h
@@ -24,12 +24,23 @@ class WebBlobRegistryImpl : public WebKit::WebBlobRegistry {
explicit WebBlobRegistryImpl(ThreadSafeSender* sender);
virtual ~WebBlobRegistryImpl();
+ virtual void registerBlobData(const WebKit::WebString& uuid,
+ const WebKit::WebBlobData& data);
+ 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&);
+
+ // DEPRECATED
+ // TODO(michaeln): crbug/174200
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);
+ // Additional support for Streams.
virtual void registerStreamURL(const WebKit::WebURL& url,
const WebKit::WebString& content_type);
virtual void registerStreamURL(const WebKit::WebURL& url,
@@ -40,7 +51,7 @@ class WebBlobRegistryImpl : public WebKit::WebBlobRegistry {
virtual void unregisterStreamURL(const WebKit::WebURL& url);
private:
- void SendDataForBlob(const WebKit::WebURL& url,
+ void SendDataForBlob(const std::string& uuid_str,
const WebKit::WebThreadSafeData& data);
scoped_refptr<ThreadSafeSender> sender_;

Powered by Google App Engine
This is Rietveld 408576698