1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from telemetry.core import possible_app
8 class PossibleBrowser(possible_app.PossibleApp):
9 """A browser that can be controlled.
11 Call Create() to launch the browser and begin manipulating it..
14 def __init__(self, browser_type, target_os, supports_tab_control):
15 super(PossibleBrowser, self).__init__(app_type=browser_type,
17 self._supports_tab_control = supports_tab_control
18 self._credentials_path = None
21 return 'PossibleBrowser(app_type=%s)' % self.app_type
24 def browser_type(self):
28 def supports_tab_control(self):
29 return self._supports_tab_control
31 def _InitPlatformIfNeeded(self):
32 raise NotImplementedError()
34 def Create(self, finder_options):
35 raise NotImplementedError()
37 def SupportsOptions(self, finder_options):
38 """Tests for extension support."""
39 raise NotImplementedError()
47 def UpdateExecutableIfNeeded(self):
50 def last_modification_time(self):
53 def SetCredentialsPath(self, credentials_path):
54 self._credentials_path = credentials_path