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

Unified Diff: third_party/WebKit/public/platform/WebURLLoaderMockFactory.h

Issue 2822453003: Wrap large IndexedDB values into Blobs before writing to LevelDB. (Closed)
Patch Set: Addressed last round of feedback. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
diff --git a/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h b/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
index 76321e620ff8b7fe76c5426afa37ffc40a37aa23..05551cb328cf78ae031f3616f225b903f238bd9c 100644
--- a/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
+++ b/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
@@ -33,14 +33,14 @@ class WebURLLoaderMockFactory {
// Registers a response and the file to be served when the specified URL
// is loaded. If no file is specified then the response content will be empty.
- // unregisterURL() should be called for each test entry before registering
+ // UnregisterURL() should be called for each test entry before registering
// another response for the same URL from another test.
virtual void RegisterURL(const WebURL&,
const WebURLResponse&,
const WebString& file_path) = 0;
// Registers an error to be served when the specified URL is requested.
- // unregisterURL() should be called for each test entry before registering
+ // UnregisterURL() should be called for each test entry before registering
// another response for the same URL from another test.
virtual void RegisterErrorURL(const WebURL&,
const WebURLResponse&,
@@ -49,6 +49,17 @@ class WebURLLoaderMockFactory {
// Unregisters the given URL so it is no longer mocked.
virtual void UnregisterURL(const WebURL&) = 0;
+ // Registers a response and the file to be served when a URL with the given
+ // protocol is loaded. If no file is specified then the response content will
+ // be empty. UnregisterProtocol() should be called for each test entry before
+ // registering another response for the same protocol from another test.
+ virtual void RegisterURLProtocol(const WebString& protocol,
+ const WebURLResponse&,
+ const WebString& file_path) = 0;
+
+ // Unregisters the given URL protocol so it is no longer mocked.
+ virtual void UnregisterURLProtocol(const WebString& protocol) = 0;
+
// Unregisters URLs so they are no longer mocked. This also clears the
// MemoryCache.
virtual void UnregisterAllURLsAndClearMemoryCache() = 0;
« no previous file with comments | « third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698