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