OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 else | 442 else |
443 result = {value: remoteObject.value}; | 443 result = {value: remoteObject.value}; |
444 | 444 |
445 this._dispatchCallback(message.requestId, port, result); | 445 this._dispatchCallback(message.requestId, port, result); |
446 } | 446 } |
447 return this.evaluate( | 447 return this.evaluate( |
448 message.expression, true, true, message.evaluateOptions, port._extension
Origin, callback.bind(this)); | 448 message.expression, true, true, message.evaluateOptions, port._extension
Origin, callback.bind(this)); |
449 } | 449 } |
450 | 450 |
451 _onGetHAR() { | 451 _onGetHAR() { |
452 var requests = NetworkLog.networkLog.requests(); | 452 var requests = Array.from(NetworkLog.networkLog.requests()); |
453 var harLog = (new NetworkLog.HARLog(requests)).build(); | 453 var harLog = (new NetworkLog.HARLog(requests)).build(); |
454 for (var i = 0; i < harLog.entries.length; ++i) | 454 for (var i = 0; i < harLog.entries.length; ++i) |
455 harLog.entries[i]._requestId = this._requestId(requests[i]); | 455 harLog.entries[i]._requestId = this._requestId(requests[i]); |
456 return harLog; | 456 return harLog; |
457 } | 457 } |
458 | 458 |
459 /** | 459 /** |
460 * @param {!Common.ContentProvider} contentProvider | 460 * @param {!Common.ContentProvider} contentProvider |
461 */ | 461 */ |
462 _makeResource(contentProvider) { | 462 _makeResource(contentProvider) { |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 /** | 1045 /** |
1046 * @typedef {{code: string, description: string, details: !Array.<*>}} | 1046 * @typedef {{code: string, description: string, details: !Array.<*>}} |
1047 */ | 1047 */ |
1048 Extensions.ExtensionStatus.Record; | 1048 Extensions.ExtensionStatus.Record; |
1049 | 1049 |
1050 Extensions.extensionAPI = {}; | 1050 Extensions.extensionAPI = {}; |
1051 defineCommonExtensionSymbols(Extensions.extensionAPI); | 1051 defineCommonExtensionSymbols(Extensions.extensionAPI); |
1052 | 1052 |
1053 /** @type {!Extensions.ExtensionServer} */ | 1053 /** @type {!Extensions.ExtensionServer} */ |
1054 Extensions.extensionServer; | 1054 Extensions.extensionServer; |
OLD | NEW |