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 #pragma once | |
8 | 7 |
9 #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" |
10 | 9 |
11 class ChildThread; | 10 class ChildThread; |
12 | 11 |
13 namespace WebKit { | 12 namespace WebKit { |
14 class WebBlobData; | 13 class WebBlobData; |
15 class WebURL; | 14 class WebURL; |
16 } | 15 } |
17 | 16 |
18 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { | 17 class WebBlobRegistryImpl : public WebKit::WebBlobRegistry { |
19 public: | 18 public: |
20 explicit WebBlobRegistryImpl(ChildThread* child_thread); | 19 explicit WebBlobRegistryImpl(ChildThread* child_thread); |
21 virtual ~WebBlobRegistryImpl(); | 20 virtual ~WebBlobRegistryImpl(); |
22 | 21 |
23 // See WebBlobRegistry.h for documentation on these functions. | 22 // See WebBlobRegistry.h for documentation on these functions. |
24 virtual void registerBlobURL(const WebKit::WebURL& url, | 23 virtual void registerBlobURL(const WebKit::WebURL& url, |
25 WebKit::WebBlobData& data); | 24 WebKit::WebBlobData& data); |
26 virtual void registerBlobURL(const WebKit::WebURL& url, | 25 virtual void registerBlobURL(const WebKit::WebURL& url, |
27 const WebKit::WebURL& src_url); | 26 const WebKit::WebURL& src_url); |
28 virtual void unregisterBlobURL(const WebKit::WebURL& url); | 27 virtual void unregisterBlobURL(const WebKit::WebURL& url); |
29 | 28 |
30 private: | 29 private: |
31 ChildThread* child_thread_; | 30 ChildThread* child_thread_; |
32 }; | 31 }; |
33 | 32 |
34 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ | 33 #endif // CONTENT_COMMON_FILEAPI_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |