| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SDK.ResourceTreeModel.Events.MainFrameNavigated, this._onMainFrameNaviga
ted, this); | 47 SDK.ResourceTreeModel.Events.MainFrameNavigated, this._onMainFrameNaviga
ted, this); |
| 48 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.Load, this._
onLoad, this); | 48 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.Load, this._
onLoad, this); |
| 49 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.DOMContentLo
aded, this._onDOMContentLoaded, this); | 49 resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.DOMContentLo
aded, this._onDOMContentLoaded, this); |
| 50 } | 50 } |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @param {!SDK.Target} target | 53 * @param {!SDK.Target} target |
| 54 * @return {?SDK.NetworkLog} | 54 * @return {?SDK.NetworkLog} |
| 55 */ | 55 */ |
| 56 static fromTarget(target) { | 56 static fromTarget(target) { |
| 57 return /** @type {?SDK.NetworkLog} */ (target.model(SDK.NetworkLog)); | 57 return target.model(SDK.NetworkLog); |
| 58 } | 58 } |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * @param {string} url | 61 * @param {string} url |
| 62 * @return {?SDK.NetworkRequest} | 62 * @return {?SDK.NetworkRequest} |
| 63 */ | 63 */ |
| 64 static requestForURL(url) { | 64 static requestForURL(url) { |
| 65 for (var target of SDK.targetManager.targets()) { | 65 for (var target of SDK.targetManager.targets()) { |
| 66 var networkLog = SDK.NetworkLog.fromTarget(target); | 66 var networkLog = SDK.NetworkLog.fromTarget(target); |
| 67 var result = networkLog && networkLog.requestForURL(url); | 67 var result = networkLog && networkLog.requestForURL(url); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 * @param {!SDK.NetworkRequest} mainRequest | 176 * @param {!SDK.NetworkRequest} mainRequest |
| 177 */ | 177 */ |
| 178 constructor(mainRequest) { | 178 constructor(mainRequest) { |
| 179 this.id = ++SDK.PageLoad._lastIdentifier; | 179 this.id = ++SDK.PageLoad._lastIdentifier; |
| 180 this.url = mainRequest.url; | 180 this.url = mainRequest.url; |
| 181 this.startTime = mainRequest.startTime; | 181 this.startTime = mainRequest.startTime; |
| 182 } | 182 } |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 SDK.PageLoad._lastIdentifier = 0; | 185 SDK.PageLoad._lastIdentifier = 0; |
| OLD | NEW |