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

Unified Diff: tools/telemetry/telemetry/inspector_page.py

Issue 12079070: Rename tab_backend to inspector_backend. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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/telemetry/telemetry/inspector_console.py ('k') | tools/telemetry/telemetry/inspector_runtime.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/inspector_page.py
===================================================================
--- tools/telemetry/telemetry/inspector_page.py (revision 179778)
+++ tools/telemetry/telemetry/inspector_page.py (working copy)
@@ -7,9 +7,9 @@
from telemetry import util
class InspectorPage(object):
- def __init__(self, tab_backend):
- self._tab_backend = tab_backend
- self._tab_backend.RegisterDomain(
+ def __init__(self, inspector_backend):
+ self._inspector_backend = inspector_backend
+ self._inspector_backend.RegisterDomain(
'Page',
self._OnNotification,
self._OnClose)
@@ -38,14 +38,14 @@
request = {
'method': 'Page.enable'
}
- res = self._tab_backend.SyncRequest(request, timeout)
+ res = self._inspector_backend.SyncRequest(request, timeout)
assert len(res['result'].keys()) == 0
def DisablePageNotifications():
request = {
'method': 'Page.disable'
}
- res = self._tab_backend.SyncRequest(request, timeout)
+ res = self._inspector_backend.SyncRequest(request, timeout)
assert len(res['result'].keys()) == 0
self._navigation_pending = True
@@ -56,7 +56,7 @@
raise
def IsNavigationDone(time_left):
- self._tab_backend.DispatchNotifications(time_left)
+ self._inspector_backend.DispatchNotifications(time_left)
return not self._navigation_pending
util.WaitFor(IsNavigationDone, timeout, pass_time_left_to_func=True)
@@ -78,7 +78,7 @@
'url': url,
}
}
- self._tab_backend.SendAndIgnoreResponse(request)
+ self._inspector_backend.SendAndIgnoreResponse(request)
self.PerformActionAndWaitForNavigate(DoNavigate, timeout)
@@ -87,7 +87,7 @@
request = {
'method': 'Page.getCookies'
}
- res = self._tab_backend.SyncRequest(request, timeout)
+ res = self._inspector_backend.SyncRequest(request, timeout)
cookies = res['result']['cookies']
for cookie in cookies:
if cookie['name'] == name:
« no previous file with comments | « tools/telemetry/telemetry/inspector_console.py ('k') | tools/telemetry/telemetry/inspector_runtime.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698