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_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
6 #define CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 6 #define CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 9 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
10 | 10 |
11 namespace WebKit { | 11 namespace WebKit { |
12 class WebBlobData; | 12 class WebBlobData; |
13 class WebURL; | 13 class WebURL; |
14 } | 14 } |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class ThreadSafeSender; | 17 class ThreadSafeSender; |
18 | 18 |
19 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { | 19 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { |
20 public: | 20 public: |
21 explicit WebBlobRegistryImpl(ThreadSafeSender* sender); | 21 explicit WebBlobRegistryImpl(ThreadSafeSender* sender); |
22 virtual ~WebBlobRegistryImpl(); | 22 virtual ~WebBlobRegistryImpl(); |
23 | 23 |
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 scoped_refptr<ThreadSafeSender> sender_; | 31 scoped_refptr<ThreadSafeSender> sender_; |
32 }; | 32 }; |
33 | 33 |
34 } // namespace content | 34 } // namespace content |
35 | 35 |
36 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 36 #endif // CONTENT_CHILD_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |