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

Unified Diff: public/platform/WebBlobRegistry.h

Issue 23703003: Couple of minor changes to the WebKitAPI. This is a small step in a larger work-in-progress. See th… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « public/platform/WebBlobData.h ('k') | public/platform/WebFileWriter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebBlobRegistry.h
diff --git a/public/platform/WebBlobRegistry.h b/public/platform/WebBlobRegistry.h
index 726c522044f38f1fa8d89eed2de43a9bba470b96..0b07581d78a6f3fc9a7943c49986e1dd4ab12a84 100644
--- a/public/platform/WebBlobRegistry.h
+++ b/public/platform/WebBlobRegistry.h
@@ -42,19 +42,18 @@ class WebURL;
class WebBlobRegistry {
public:
- WEBKIT_EXPORT static WebBlobRegistry* create();
-
virtual ~WebBlobRegistry() { }
- // Registers a blob URL referring to the specified blob data.
- virtual void registerBlobURL(const WebURL&, WebBlobData&) = 0;
-
- // Registers a blob URL referring to the blob data identified by the
- // specified srcURL.
- virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) = 0;
+ 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&) { }
- // Unregisters a blob referred by the URL.
- virtual void unregisterBlobURL(const WebURL&) = 0;
+ // DEPRECATED - old style blob handling is being replaced
+ virtual void registerBlobURL(const WebURL&, WebBlobData&) { }
+ virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) { }
+ virtual void unregisterBlobURL(const WebURL&) { }
// Registers a stream URL referring to a stream with the specified media
// type.
« no previous file with comments | « public/platform/WebBlobData.h ('k') | public/platform/WebFileWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698