| OLD | NEW |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from py_trace_event import trace_event |
| 6 |
| 5 | 7 |
| 6 class AppBackend(object): | 8 class AppBackend(object): |
| 9 |
| 10 __metaclass__ = trace_event.TracedMetaClass |
| 11 |
| 7 def __init__(self, app_type, platform_backend): | 12 def __init__(self, app_type, platform_backend): |
| 8 super(AppBackend, self).__init__() | 13 super(AppBackend, self).__init__() |
| 9 self._app = None | 14 self._app = None |
| 10 self._app_type = app_type | 15 self._app_type = app_type |
| 11 self._platform_backend = platform_backend | 16 self._platform_backend = platform_backend |
| 12 | 17 |
| 13 def __del__(self): | 18 def __del__(self): |
| 14 self.Close() | 19 self.Close() |
| 15 | 20 |
| 16 def SetApp(self, app): | 21 def SetApp(self, app): |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 raise NotImplementedError | 53 raise NotImplementedError |
| 49 | 54 |
| 50 def GetStandardOutput(self): | 55 def GetStandardOutput(self): |
| 51 raise NotImplementedError | 56 raise NotImplementedError |
| 52 | 57 |
| 53 def GetStackTrace(self): | 58 def GetStackTrace(self): |
| 54 raise NotImplementedError | 59 raise NotImplementedError |
| 55 | 60 |
| 56 def GetMostRecentMinidumpPath(self): | 61 def GetMostRecentMinidumpPath(self): |
| 57 raise NotImplementedError | 62 raise NotImplementedError |
| OLD | NEW |