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 "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis
try.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis
try.h" |
9 | 9 |
| 10 namespace IPC { |
| 11 class Message; |
| 12 } |
| 13 |
10 namespace WebKit { | 14 namespace WebKit { |
11 class WebBlobData; | 15 class WebBlobData; |
| 16 class WebString; |
12 class WebURL; | 17 class WebURL; |
13 } | 18 } |
14 | 19 |
15 namespace content { | 20 namespace content { |
16 class ChildThread; | 21 class ChildThread; |
17 | 22 |
18 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { | 23 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { |
19 public: | 24 public: |
20 explicit WebBlobRegistryImpl(ChildThread* child_thread); | 25 explicit WebBlobRegistryImpl(ChildThread* child_thread); |
21 virtual ~WebBlobRegistryImpl(); | 26 virtual ~WebBlobRegistryImpl(); |
22 | 27 |
23 // See WebBlobRegistry.h for documentation on these functions. | 28 virtual void registerBlobData(const WebKit::WebString& uuid, |
24 virtual void registerBlobURL(const WebKit::WebURL& url, | 29 const WebKit::WebBlobData&); |
25 WebKit::WebBlobData& data); | 30 virtual void addBlobDataRef(const WebKit::WebString& uuid); |
26 virtual void registerBlobURL(const WebKit::WebURL& url, | 31 virtual void removeBlobDataRef(const WebKit::WebString& uuid); |
27 const WebKit::WebURL& src_url); | 32 virtual void registerPublicBlobURL(const WebKit::WebURL&, |
28 virtual void unregisterBlobURL(const WebKit::WebURL& url); | 33 const WebKit::WebString& uuid); |
| 34 virtual void revokePublicBlobURL(const WebKit::WebURL&); |
29 | 35 |
30 private: | 36 private: |
| 37 void SendFromAnyThread(IPC::Message* msg); |
| 38 |
31 ChildThread* child_thread_; | 39 ChildThread* child_thread_; |
32 }; | 40 }; |
33 | 41 |
34 } // namespace content | 42 } // namespace content |
35 | 43 |
36 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 44 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |