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.
4
5
6class AppBackend(object):
7  def __init__(self, app_type, platform_backend):
8    super(AppBackend, self).__init__()
9    self._app = None
10    self._app_type = app_type
11    self._platform_backend = platform_backend
12
13  def __del__(self):
14    self.Close()
15
16  def SetApp(self, app):
17    self._app = app
18
19  @property
20  def app(self):
21    return self._app
22
23  @property
24  def app_type(self):
25    return self._app_type
26
27  @property
28  def pid(self):
29    raise NotImplementedError
30
31  @property
32  def platform_backend(self):
33    return self._platform_backend
34
35  def Start(self):
36    raise NotImplementedError
37
38  def Close(self):
39    raise NotImplementedError
40
41  def IsAppRunning(self):
42    raise NotImplementedError
43
44  def GetStandardOutput(self):
45    raise NotImplementedError
46
47  def GetStackTrace(self):
48    raise NotImplementedError
49