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
3 # found in the LICENSE file.
5 from telemetry.core import platform
8 class PossibleBrowser(object):
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, finder_options):
15 self._browser_type = browser_type
16 self._target_os = target_os
17 self._finder_options = finder_options
21 return 'PossibleBrowser(browser_type=%s)' % self.browser_type
24 def browser_type(self):
25 return self._browser_type
29 """Target OS, the browser will run on."""
30 return self._target_os
33 def finder_options(self):
34 return self._finder_options
38 if not self._platform:
39 self._platform = platform.Platform(self._platform_backend)
43 raise NotImplementedError()
45 def SupportsOptions(self, finder_options):
46 """Tests for extension support."""
47 raise NotImplementedError()
49 def last_modification_time(self):