OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_ | 5 #ifndef CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_ |
6 #define CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_ | 6 #define CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ipc/ipc_message.h" | 9 //#include "ipc/ipc_message.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.h" |
11 | 11 |
| 12 class ChildThread; |
| 13 |
| 14 namespace base { |
| 15 class SharedMemory; |
| 16 } |
| 17 |
12 namespace WebKit { | 18 namespace WebKit { |
13 class WebBlobData; | 19 class WebBlobData; |
14 class WebBlobStorageData; | |
15 class WebString; | |
16 class WebURL; | 20 class WebURL; |
17 } | 21 } |
18 | 22 |
19 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { | 23 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { |
20 public: | 24 public: |
21 explicit WebBlobRegistryImpl(IPC::Message::Sender* sender); | 25 explicit WebBlobRegistryImpl(ChildThread* child_thread); |
22 virtual ~WebBlobRegistryImpl(); | 26 virtual ~WebBlobRegistryImpl(); |
23 | 27 |
24 // See WebBlobRegistry.h for documentation on these functions. | 28 // See WebBlobRegistry.h for documentation on these functions. |
25 virtual void registerBlobURL(const WebKit::WebURL& url, | 29 virtual void registerBlobURL(const WebKit::WebURL& url, |
26 WebKit::WebBlobData& data); | 30 WebKit::WebBlobData& data); |
27 virtual void registerBlobURL(const WebKit::WebURL& url, | 31 virtual void registerBlobURL(const WebKit::WebURL& url, |
28 const WebKit::WebURL& src_url); | 32 const WebKit::WebURL& src_url); |
29 virtual void unregisterBlobURL(const WebKit::WebURL& url); | 33 virtual void unregisterBlobURL(const WebKit::WebURL& url); |
30 | 34 |
31 private: | 35 private: |
32 IPC::Message::Sender* sender_; | 36 ChildThread* child_thread_; |
33 }; | 37 }; |
34 | 38 |
35 #endif // CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_ | 39 #endif // CHROME_COMMON_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |