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

Side by Side Diff: tools/telemetry/telemetry/core/web_contents.py

Issue 145923002: Added support to listen on Network.responseReceived and expose that through tab.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (inspector_network cleanup from previous API) Created 6 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from telemetry.core import util 5 from telemetry.core import util
6 6
7 DEFAULT_WEB_CONTENTS_TIMEOUT = 90 7 DEFAULT_WEB_CONTENTS_TIMEOUT = 90
8 8
9 # TODO(achuith, dtu, nduca): Add unit tests specifically for WebContents, 9 # TODO(achuith, dtu, nduca): Add unit tests specifically for WebContents,
10 # independent of Tab. 10 # independent of Tab.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return self._inspector_backend.message_output_stream 78 return self._inspector_backend.message_output_stream
79 79
80 @message_output_stream.setter 80 @message_output_stream.setter
81 def message_output_stream(self, stream): 81 def message_output_stream(self, stream):
82 self._inspector_backend.message_output_stream = stream 82 self._inspector_backend.message_output_stream = stream
83 83
84 @property 84 @property
85 def timeline_model(self): 85 def timeline_model(self):
86 return self._inspector_backend.timeline_model 86 return self._inspector_backend.timeline_model
87 87
88 def StartTimelineRecording(self): 88 def StartTimelineRecording(self, options=None):
89 self._inspector_backend.StartTimelineRecording() 89 self._inspector_backend.StartTimelineRecording(options)
90 90
91 def StopTimelineRecording(self): 91 def StopTimelineRecording(self):
92 self._inspector_backend.StopTimelineRecording() 92 self._inspector_backend.StopTimelineRecording()
93 93
94 def TakeJSHeapSnapshot(self, timeout=120): 94 def TakeJSHeapSnapshot(self, timeout=120):
95 return self._inspector_backend.TakeJSHeapSnapshot(timeout) 95 return self._inspector_backend.TakeJSHeapSnapshot(timeout)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698