telemetry.core.chrome.cros_browser_backend
index
telemetry/core/chrome/cros_browser_backend.py

# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
telemetry.core.chrome.browser_backend
telemetry.core.exceptions
logging
os
subprocess
telemetry.core.util

 
Classes
       
__builtin__.object
SSHForwarder
telemetry.core.chrome.browser_backend.BrowserBackend(__builtin__.object)
CrOSBrowserBackend

 
class CrOSBrowserBackend(telemetry.core.chrome.browser_backend.BrowserBackend)
    
Method resolution order:
CrOSBrowserBackend
telemetry.core.chrome.browser_backend.BrowserBackend
__builtin__.object

Methods defined here:
Close(self)
CreateForwarder(self, *port_pairs)
GetBrowserStartupArgs(self)
GetRemotePort(self, _)
GetStackTrace(self)
GetStandardOutput(self)
IsBrowserRunning(self)
__del__(self)
__init__(self, browser_type, options, cri, is_guest)

Data descriptors defined here:
hwid
oobe
pid
Locates the pid of the main chrome browser process.
 
Chrome on cros is usually in /opt/google/chrome, but could be in
/usr/local/ for developer workflows - debug chrome is too large to fit on
rootfs.
 
Chrome spawns multiple processes for renderers. pids wrap around after they
are exhausted so looking for the smallest pid is not always correct. We
locate the session_manager's pid, and look for the chrome process that's an
immediate child. This is the main browser process.

Data and other attributes defined here:
CHROME_PATHS = ['/opt/google/chrome/chrome ', '/usr/local/opt/google/chrome/chrome ']

Methods inherited from telemetry.core.chrome.browser_backend.BrowserBackend:
GetProcessName(self, cmd_line)
Returns a user-friendly name for the process of the given |cmd_line|.
GetTraceResultAndReset(self)
Request(self, path, timeout=None)
SetBrowser(self, browser)
StartTracing(self, custom_categories=None, timeout=60)
custom_categories is an optional string containing a list of
comma separated categories that will be traced instead of the
default category set.  Example: use
"webkit,cc,disabled-by-default-cc.debug" to trace only those three
event categories.
StopTracing(self)

Data descriptors inherited from telemetry.core.chrome.browser_backend.BrowserBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
browser
chrome_branch_number
extension_dict_backend
misc_web_contents_backend
Access to chrome://oobe/login page which is neither a tab nor an
extension.
supports_extensions
True if this browser backend supports extensions.
supports_tab_control
supports_tracing
tab_list_backend
wpr_mode

Data and other attributes inherited from telemetry.core.chrome.browser_backend.BrowserBackend:
WEBPAGEREPLAY_HOST = '127.0.0.1'

 
class SSHForwarder(__builtin__.object)
     Methods defined here:
Close(self)
__init__(self, cri, forwarding_flag, *port_pairs)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
url