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 WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ |
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis
try.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis
try.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 TestShellWebBlobRegistryImpl(); | 26 TestShellWebBlobRegistryImpl(); |
27 | 27 |
28 // See WebBlobRegistry.h for documentation on these functions. | 28 // See WebBlobRegistry.h for documentation on these functions. |
29 virtual void registerBlobURL(const WebKit::WebURL& url, | 29 virtual void registerBlobURL(const WebKit::WebURL& url, |
30 WebKit::WebBlobData& data); | 30 WebKit::WebBlobData& data); |
31 virtual void registerBlobURL(const WebKit::WebURL& url, | 31 virtual void registerBlobURL(const WebKit::WebURL& url, |
32 const WebKit::WebURL& src_url); | 32 const WebKit::WebURL& src_url); |
33 virtual void unregisterBlobURL(const WebKit::WebURL& url); | 33 virtual void unregisterBlobURL(const WebKit::WebURL& url); |
34 | 34 |
| 35 protected: |
| 36 virtual ~TestShellWebBlobRegistryImpl() {} |
| 37 |
35 private: | 38 private: |
36 friend class base::RefCountedThreadSafe<TestShellWebBlobRegistryImpl>; | 39 friend class base::RefCountedThreadSafe<TestShellWebBlobRegistryImpl>; |
37 | 40 |
38 // Run on I/O thread. | 41 // Run on I/O thread. |
39 void AddFinishedBlob(const GURL& url, webkit_blob::BlobData* blob_data); | 42 void AddFinishedBlob(const GURL& url, webkit_blob::BlobData* blob_data); |
40 void CloneBlob(const GURL& url, const GURL& src_url); | 43 void CloneBlob(const GURL& url, const GURL& src_url); |
41 void RemoveBlob(const GURL& url); | 44 void RemoveBlob(const GURL& url); |
42 | 45 |
43 DISALLOW_COPY_AND_ASSIGN(TestShellWebBlobRegistryImpl); | 46 DISALLOW_COPY_AND_ASSIGN(TestShellWebBlobRegistryImpl); |
44 }; | 47 }; |
45 | 48 |
46 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ | 49 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |