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

Unified Diff: WebCore/platform/network/chromium/BlobRegistryProxy.h

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 11 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 | « WebCore/platform/network/FormData.cpp ('k') | WebCore/platform/network/chromium/BlobRegistryProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/platform/network/chromium/BlobRegistryProxy.h
===================================================================
--- WebCore/platform/network/chromium/BlobRegistryProxy.h (revision 140218)
+++ WebCore/platform/network/chromium/BlobRegistryProxy.h (working copy)
@@ -39,15 +39,20 @@
namespace WebCore {
+// Methods may be called on the main and worker threads.
class BlobRegistryProxy : public BlobRegistry {
public:
BlobRegistryProxy();
- virtual void registerBlobURL(const KURL&, PassOwnPtr<BlobData>);
- virtual void registerBlobURL(const KURL&, const KURL& srcURL);
- virtual void unregisterBlobURL(const KURL&);
+ virtual void registerBlobData(const String& uuid, PassOwnPtr<BlobData>);
+ virtual void addBlobDataRef(const String& uuid);
+ virtual void removeBlobDataRef(const String& uuid);
+ virtual void registerPublicBlobURL(SecurityOrigin*, const KURL&, PassRefPtr<BlobDataHandle>);
+ virtual void revokePublicBlobURL(const KURL&);
- virtual bool loadResourceSynchronously(const ResourceRequest&, ResourceError&, ResourceResponse&, Vector<char>& data) { return false; }
+ // This method has thread affinity, the cached origin for a public blob url
+ // will only be returned when invoked on the thread that registered the url.
+ virtual PassRefPtr<SecurityOrigin> cachedUniqueOrigin(const KURL&);
private:
virtual ~BlobRegistryProxy() { }
« no previous file with comments | « WebCore/platform/network/FormData.cpp ('k') | WebCore/platform/network/chromium/BlobRegistryProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698