Index: content/common/fileapi/webblobregistry_impl.h |
=================================================================== |
--- content/common/fileapi/webblobregistry_impl.h (revision 183651) |
+++ content/common/fileapi/webblobregistry_impl.h (working copy) |
@@ -5,30 +5,46 @@ |
#ifndef CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
#define CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
+#include "base/memory/ref_counted.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" |
+namespace IPC { |
+class Message; |
+} |
+ |
namespace WebKit { |
class WebBlobData; |
+class WebString; |
class WebURL; |
} |
namespace content { |
-class ChildThread; |
+class ThreadSafeSender; |
class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { |
public: |
- explicit WebBlobRegistryImpl(ChildThread* child_thread); |
+ explicit WebBlobRegistryImpl(ThreadSafeSender* sender); |
virtual ~WebBlobRegistryImpl(); |
- // See WebBlobRegistry.h for documentation on these functions. |
+ 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&); |
+ |
+ // DEPRECATED |
+ /* |
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); |
+ */ |
private: |
- ChildThread* child_thread_; |
+ scoped_refptr<ThreadSafeSender> sender_; |
}; |
} // namespace content |