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/WebBlobRegistry.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.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 // Run on I/O thread. | 35 private: |
36 void DoRegisterBlobUrl(const GURL& url, webkit_blob::BlobData* blob_data); | |
37 void DoRegisterBlobUrlFrom(const GURL& url, const GURL& src_url); | |
38 void DoUnregisterBlobUrl(const GURL& url); | |
39 | |
40 protected: | |
41 friend class base::RefCountedThreadSafe<TestShellWebBlobRegistryImpl>; | 36 friend class base::RefCountedThreadSafe<TestShellWebBlobRegistryImpl>; |
42 | 37 |
43 private: | 38 // Run on I/O thread. |
| 39 void AddFinishedBlob(const GURL& url, webkit_blob::BlobData* blob_data); |
| 40 void CloneBlob(const GURL& url, const GURL& src_url); |
| 41 void RemoveBlob(const GURL& url); |
| 42 |
44 DISALLOW_COPY_AND_ASSIGN(TestShellWebBlobRegistryImpl); | 43 DISALLOW_COPY_AND_ASSIGN(TestShellWebBlobRegistryImpl); |
45 }; | 44 }; |
46 | 45 |
47 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ | 46 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBBLOBREGISTRY_IMPL_H_ |
OLD | NEW |