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

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

Issue 2683033005: URLLoaderMockFactory: clear MemoryCache in unregisterAllURLs (Closed)
Patch Set: Created 3 years, 10 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/web/tests/WebViewTest.cpp ('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 b3cc9b16f918ec866ead8c913c0155fb77a24ad6..f1a71c7c5ff4afb46d0374431c35f5f8e9bd2d92 100644
--- a/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
+++ b/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
@@ -45,8 +45,11 @@ class WebURLLoaderMockFactory {
const WebURLResponse&,
const WebURLError&) = 0;
- // Unregisters URLs so they are no longer mocked.
+ // Unregisters the given URL so it is no longer mocked.
virtual void unregisterURL(const WebURL&) = 0;
+
+ // Unregisters URLs so they are no longer mocked. This also clears the
+ // MemoryCache.
virtual void unregisterAllURLs() = 0;
dcheng 2017/02/09 19:42:12 I wonder if it'd be clearer if it was named: unre
// Causes all pending asynchronous requests to be served. When this method
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698