| Index: Source/devtools/front_end/sdk/NetworkLog.js
|
| diff --git a/Source/devtools/front_end/sdk/NetworkLog.js b/Source/devtools/front_end/sdk/NetworkLog.js
|
| index e95707d7c40d02e291cc22683052fdedf014c38c..7c0afd8307e6dc21e6597585369ab1fe4dc6c1d3 100644
|
| --- a/Source/devtools/front_end/sdk/NetworkLog.js
|
| +++ b/Source/devtools/front_end/sdk/NetworkLog.js
|
| @@ -45,11 +45,37 @@ WebInspector.NetworkLog = function(target)
|
| target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._onDOMContentLoaded, this);
|
| }
|
|
|
| +/**
|
| + * @param {string} url
|
| + * @return {?WebInspector.NetworkRequest}
|
| + */
|
| +WebInspector.NetworkLog.requestForURL = function(url)
|
| +{
|
| + for (var target of WebInspector.targetManager.targets()) {
|
| + var result = target.networkLog.requestForURL(url);
|
| + if (result)
|
| + return result;
|
| + }
|
| + return null;
|
| +}
|
| +
|
| +/**
|
| + * @return {!Array.<!WebInspector.NetworkRequest>}
|
| + */
|
| +WebInspector.NetworkLog.requests = function()
|
| +{
|
| + var result = [];
|
| + for (var target of WebInspector.targetManager.targets()) {
|
| + result = result.concat(target.networkLog.requests());
|
| + }
|
| + return result;
|
| +}
|
| +
|
| WebInspector.NetworkLog.prototype = {
|
| /**
|
| * @return {!Array.<!WebInspector.NetworkRequest>}
|
| */
|
| - get requests()
|
| + requests: function()
|
| {
|
| return this._requests;
|
| },
|
| @@ -140,11 +166,6 @@ WebInspector.NetworkLog.prototype = {
|
| }
|
|
|
| /**
|
| - * @type {!WebInspector.NetworkLog}
|
| - */
|
| -WebInspector.networkLog;
|
| -
|
| -/**
|
| * @constructor
|
| * @param {!WebInspector.NetworkRequest} mainRequest
|
| */
|
|
|