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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.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 unified diff | Download patch
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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.SDKModel} 33 * @extends {WebInspector.SDKModel}
34 * @param {!WebInspector.Target} target 34 * @param {!WebInspector.Target} target
35 * @param {?WebInspector.NetworkManager} networkManager
35 */ 36 */
36 WebInspector.ResourceTreeModel = function(target) 37 WebInspector.ResourceTreeModel = function(target, networkManager)
37 { 38 {
38 WebInspector.SDKModel.call(this, WebInspector.ResourceTreeModel, target); 39 WebInspector.SDKModel.call(this, WebInspector.ResourceTreeModel, target);
39 40 if (networkManager) {
40 target.networkManager.addEventListener(WebInspector.NetworkManager.EventType s.RequestFinished, this._onRequestFinished, this); 41 networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.R equestFinished,
41 target.networkManager.addEventListener(WebInspector.NetworkManager.EventType s.RequestUpdateDropped, this._onRequestUpdateDropped, this); 42 this._onRequestFinished, this);
43 networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.R equestUpdateDropped,
44 this._onRequestUpdateDropped, this);
45 }
42 46
43 this._agent = target.pageAgent(); 47 this._agent = target.pageAgent();
44 this._agent.enable(); 48 this._agent.enable();
45 49
46 this._fetchResourceTree(); 50 this._fetchResourceTree();
47 51
48 target.registerPageDispatcher(new WebInspector.PageDispatcher(this)); 52 target.registerPageDispatcher(new WebInspector.PageDispatcher(this));
49 53
50 this._securityOriginFrameCount = {}; 54 this._securityOriginFrameCount = {};
51 this._inspectedPageURL = ""; 55 this._inspectedPageURL = "";
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 }, 926 },
923 927
924 /** 928 /**
925 * @override 929 * @override
926 */ 930 */
927 interstitialHidden: function() 931 interstitialHidden: function()
928 { 932 {
929 // Frontend is not interested in interstitials. 933 // Frontend is not interested in interstitials.
930 } 934 }
931 } 935 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698