| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 5 #ifndef CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
| 6 #define CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 6 #define CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" |
| 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" |
| 9 | 10 |
| 11 namespace IPC { |
| 12 class Message; |
| 13 } |
| 14 |
| 10 namespace WebKit { | 15 namespace WebKit { |
| 11 class WebBlobData; | 16 class WebBlobData; |
| 17 class WebString; |
| 12 class WebURL; | 18 class WebURL; |
| 13 } | 19 } |
| 14 | 20 |
| 15 namespace content { | 21 namespace content { |
| 16 class ChildThread; | 22 class ThreadSafeSender; |
| 17 | 23 |
| 18 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { | 24 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { |
| 19 public: | 25 public: |
| 20 explicit WebBlobRegistryImpl(ChildThread* child_thread); | 26 explicit WebBlobRegistryImpl(ThreadSafeSender* sender); |
| 21 virtual ~WebBlobRegistryImpl(); | 27 virtual ~WebBlobRegistryImpl(); |
| 22 | 28 |
| 23 // See WebBlobRegistry.h for documentation on these functions. | 29 virtual void registerBlobData(const WebKit::WebString& uuid, |
| 30 const WebKit::WebBlobData&); |
| 31 virtual void addBlobDataRef(const WebKit::WebString& uuid); |
| 32 virtual void removeBlobDataRef(const WebKit::WebString& uuid); |
| 33 virtual void registerPublicBlobURL(const WebKit::WebURL&, |
| 34 const WebKit::WebString& uuid); |
| 35 virtual void revokePublicBlobURL(const WebKit::WebURL&); |
| 36 |
| 37 // DEPRECATED |
| 38 /* |
| 24 virtual void registerBlobURL(const WebKit::WebURL& url, | 39 virtual void registerBlobURL(const WebKit::WebURL& url, |
| 25 WebKit::WebBlobData& data); | 40 WebKit::WebBlobData& data); |
| 26 virtual void registerBlobURL(const WebKit::WebURL& url, | 41 virtual void registerBlobURL(const WebKit::WebURL& url, |
| 27 const WebKit::WebURL& src_url); | 42 const WebKit::WebURL& src_url); |
| 28 virtual void unregisterBlobURL(const WebKit::WebURL& url); | 43 virtual void unregisterBlobURL(const WebKit::WebURL& url); |
| 44 */ |
| 29 | 45 |
| 30 private: | 46 private: |
| 31 ChildThread* child_thread_; | 47 scoped_refptr<ThreadSafeSender> sender_; |
| 32 }; | 48 }; |
| 33 | 49 |
| 34 } // namespace content | 50 } // namespace content |
| 35 | 51 |
| 36 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 52 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
| OLD | NEW |