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

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

Issue 2859063003: [Devtools] Restructure network nodes for friendlier products/grouping (Closed)
Patch Set: [Devtools] Restructure network nodes for friendlier products/grouping Created 3 years, 8 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 4750c082d79e8b4143a10d2c75621c5c25344752..a3e3ba079aaf4693583734920a7eb334dabaa363 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -163,6 +163,16 @@ SDK.NetworkRequest = class extends Common.Object {
}
/**
+ * @return {?SDK.ResourceTreeFrame}
+ */
+ resourceTreeFrame() {
pfeldman 2017/05/04 22:54:08 I would not depend on RTM here, the dependency goe
allada 2017/05/05 00:43:13 Done. It makes the code really ugly if I inline it
+ var resourceTreeModel = this._networkManager.target().model(SDK.ResourceTreeModel);
+ if (!resourceTreeModel)
+ return null;
+ return resourceTreeModel.frameForId(this._frameId);
+ }
+
+ /**
* @return {!Protocol.Network.LoaderId}
*/
get loaderId() {

Powered by Google App Engine
This is Rietveld 408576698