| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 import httplib | 4 import httplib |
| 5 import json | 5 import json |
| 6 import re | 6 import re |
| 7 import socket | 7 import socket |
| 8 import urllib2 | 8 import urllib2 |
| 9 import weakref | 9 import weakref |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if not self._browser_backend.IsBrowserRunning(): | 71 if not self._browser_backend.IsBrowserRunning(): |
| 72 raise browser_gone_exception.BrowserGoneException() | 72 raise browser_gone_exception.BrowserGoneException() |
| 73 raise browser_gone_exception.BrowserConnectionGoneException() | 73 raise browser_gone_exception.BrowserConnectionGoneException() |
| 74 | 74 |
| 75 def _FilterExtensions(self, all_pages): | 75 def _FilterExtensions(self, all_pages): |
| 76 return [page_info for page_info in all_pages | 76 return [page_info for page_info in all_pages |
| 77 if page_info['url'].startswith('chrome-extension://')] | 77 if page_info['url'].startswith('chrome-extension://')] |
| 78 | 78 |
| 79 def _GetExtensionIds(self): | 79 def _GetExtensionIds(self): |
| 80 return map(self._GetExtensionId, self._GetExtensionInfoList()) | 80 return map(self._GetExtensionId, self._GetExtensionInfoList()) |
| OLD | NEW |