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 | 4 |
5 import cStringIO | 5 import cStringIO |
6 import json | 6 import json |
7 import logging | 7 import logging |
8 import socket | 8 import socket |
9 import threading | 9 import threading |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 logging.debug('got [%s]', data) | 124 logging.debug('got [%s]', data) |
125 res = json.loads(data) | 125 res = json.loads(data) |
126 if res['id'] != req['id']: | 126 if res['id'] != req['id']: |
127 logging.debug('Dropped reply: %s', json.dumps(res)) | 127 logging.debug('Dropped reply: %s', json.dumps(res)) |
128 continue | 128 continue |
129 if res.get('response'): | 129 if res.get('response'): |
130 raise TracingUnsupportedException( | 130 raise TracingUnsupportedException( |
131 'Tracing not supported for this browser') | 131 'Tracing not supported for this browser') |
132 elif 'error' in res: | 132 elif 'error' in res: |
133 return | 133 return |
OLD | NEW |