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

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

Issue 2683033005: URLLoaderMockFactory: clear MemoryCache in unregisterAllURLs (Closed)
Patch Set: fix 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/sim/SimNetwork.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..e223ac4a109195597cfb7975016ff4401717eaaf 100644
--- a/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
+++ b/third_party/WebKit/public/platform/WebURLLoaderMockFactory.h
@@ -45,9 +45,12 @@ 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;
- virtual void unregisterAllURLs() = 0;
+
+ // Unregisters URLs so they are no longer mocked. This also clears the
+ // MemoryCache.
+ virtual void unregisterAllURLsAndClearMemoryCache() = 0;
// Causes all pending asynchronous requests to be served. When this method
// returns all the pending requests have been processed.
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698