# 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.
class PossibleBrowser(object):
  """A browser that can be controlled.

  Call Create() to launch the browser and begin manipulating it..
  """

  def __init__(self, browser_type, options):
    self.browser_type = browser_type
    self._options = options

  def __repr__(self):
    return 'PossibleBrowser(browser_type=%s)' % self.browser_type

  @property
  def options(self):
    return self._options

  def Create(self):
    raise NotImplementedError()

  def SupportsOptions(self, options):
    """Tests for extension support."""
    raise NotImplementedError()

# 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.
class PossibleBrowser(object):
  """A browser that can be controlled.

  Call Create() to launch the browser and begin manipulating it..
  """

  def __init__(self, browser_type, options):
    self._browser_type = browser_type
    self._options = options

  def __repr__(self):
    return 'PossibleBrowser(browser_type=%s)' % self.browser_type

  @property
  def browser_type(self):
    return self._browser_type

  @property
  def options(self):
    return self._options

  def Create(self):
    raise NotImplementedError()

  def SupportsOptions(self, options):
    """Tests for extension support."""
    raise NotImplementedError()

Make browser_type a property of PossibleBrowser.
Make browser_type a property of PossibleBrowser.

BUG=NONE
TEST=run_tests
NOTRY=true
Review URL: https://codereview.chromium.org/12479003

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@186537 0039d316-1c4b-4281-b951-d872f2087c98
