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() { } |