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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.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, 7 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/networkLogView.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 this._fetchResourceTree(); 52 this._fetchResourceTree();
53 53
54 target.registerPageDispatcher(new SDK.PageDispatcher(this)); 54 target.registerPageDispatcher(new SDK.PageDispatcher(this));
55 55
56 this._pendingReloadOptions = null; 56 this._pendingReloadOptions = null;
57 this._reloadSuspensionCount = 0; 57 this._reloadSuspensionCount = 0;
58 this._isInterstitialShowing = false; 58 this._isInterstitialShowing = false;
59 } 59 }
60 60
61 /** 61 /**
62 * @param {!SDK.NetworkRequest} request
63 * @return {?SDK.ResourceTreeFrame}
64 */
65 static frameForRequest(request) {
66 var resourceTreeModel = request.networkManager().target().model(SDK.Resource TreeModel);
67 if (!resourceTreeModel)
68 return null;
69 return resourceTreeModel.frameForId(request.frameId);
70 }
71
72 /**
62 * @return {!Array.<!SDK.ResourceTreeFrame>} 73 * @return {!Array.<!SDK.ResourceTreeFrame>}
63 */ 74 */
64 static frames() { 75 static frames() {
65 var result = []; 76 var result = [];
66 for (var resourceTreeModel of SDK.targetManager.models(SDK.ResourceTreeModel )) 77 for (var resourceTreeModel of SDK.targetManager.models(SDK.ResourceTreeModel ))
67 result = result.concat(resourceTreeModel._frames.valuesArray()); 78 result = result.concat(resourceTreeModel._frames.valuesArray());
68 return result; 79 return result;
69 } 80 }
70 81
71 /** 82 /**
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden); 894 this._resourceTreeModel.dispatchEventToListeners(SDK.ResourceTreeModel.Event s.InterstitialHidden);
884 } 895 }
885 896
886 /** 897 /**
887 * @override 898 * @override
888 */ 899 */
889 navigationRequested() { 900 navigationRequested() {
890 // Frontend is not interested in when navigations are requested. 901 // Frontend is not interested in when navigations are requested.
891 } 902 }
892 }; 903 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/networkLogView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698