Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(932)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js

Issue 2109813003: [DevTools] No NetworkManager and NetworkLog for v8only mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing code review comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
index 2ed32a58d6ec37bfe12517e033cd396cfc4e8744..ffcbb8e3cab84cd308624f44425bd4c066f306b4 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -44,6 +44,8 @@ WebInspector.NetworkRequest = function(target, requestId, url, documentURL, fram
{
WebInspector.SDKObject.call(this, target);
+ this._networkLog = /** @type {!WebInspector.NetworkLog} */ (WebInspector.NetworkLog.fromTarget(target));
+ this._networkManager = /** @type {!WebInspector.NetworkManager} */ (WebInspector.NetworkManager.fromTarget(target));
this._requestId = requestId;
this.url = url;
this._documentURL = documentURL;
@@ -1124,7 +1126,7 @@ WebInspector.NetworkRequest.prototype = {
initiatorRequest: function()
{
if (this._initiatorRequest === undefined)
- this._initiatorRequest = this.target().networkLog.requestForURL(this.initiatorInfo().url);
+ this._initiatorRequest = this._networkLog.requestForURL(this.initiatorInfo().url);
return this._initiatorRequest;
},
@@ -1207,5 +1209,21 @@ WebInspector.NetworkRequest.prototype = {
this.target().networkAgent().replayXHR(this.requestId);
},
+ /**
+ * @return {!WebInspector.NetworkLog}
+ */
+ networkLog: function()
+ {
+ return this._networkLog;
+ },
+
+ /**
+ * @return {!WebInspector.NetworkManager}
+ */
+ networkManager: function()
+ {
+ return this._networkManager;
+ },
+
__proto__: WebInspector.SDKObject.prototype
}

Powered by Google App Engine
This is Rietveld 408576698