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

Unified Diff: WebKit/chromium/src/BlobRegistryProxy.h

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years 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/chromium/src/BlobRegistryProxy.h
===================================================================
--- WebKit/chromium/src/BlobRegistryProxy.h (revision 136547)
+++ WebKit/chromium/src/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() { }

Powered by Google App Engine
This is Rietveld 408576698