Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: webkit/tools/test_shell/test_shell_webblobregistry_impl.h

Issue 7974011: Break large blobs into multiple ipcs during creation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation_write_unittest.cc ('k') | webkit/tools/test_shell/test_shell_webblobregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698