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

Unified Diff: tools/android/loading/devtools_monitor.py

Issue 1619713002: Upgrade analyze.py and related scripts to new world order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 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 | « tools/android/loading/device_setup.py ('k') | tools/android/loading/loading_model.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/devtools_monitor.py
diff --git a/tools/android/loading/devtools_monitor.py b/tools/android/loading/devtools_monitor.py
index 5e8470bac8c3a8356e4601e1505d3da38b1494c0..f1aab2e2fa70552a4dea13643dc7eb66a6cb06de 100644
--- a/tools/android/loading/devtools_monitor.py
+++ b/tools/android/loading/devtools_monitor.py
@@ -168,6 +168,15 @@ class DevToolsConnection(object):
raise DevToolsConnectionException(
'Unexpected response for %s: %s' % (method, result))
+ def ClearCache(self):
+ """Clears buffer cache.
+
+ Will assert that the browser supports cache clearing.
+ """
+ res = self.SyncRequest('Network.canClearBrowserCache')
+ assert res['result'], 'Cache clearing is not supported by this browser.'
+ self.SyncRequest('Network.clearBrowserCache')
+
def SetUpMonitoring(self):
for domain in self._domains_to_enable:
self._ws.RegisterDomain(domain, self._OnDataReceived)
« no previous file with comments | « tools/android/loading/device_setup.py ('k') | tools/android/loading/loading_model.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698