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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 if (error) { 122 if (error) {
123 this._cachedResourcesProcessed = true; 123 this._cachedResourcesProcessed = true;
124 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTy pes.CachedResourcesLoaded); 124 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTy pes.CachedResourcesLoaded);
125 return; 125 return;
126 } 126 }
127 127
128 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes. WillLoadCachedResources); 128 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes. WillLoadCachedResources);
129 this._inspectedPageURL = mainFramePayload.frame.url; 129 this._inspectedPageURL = mainFramePayload.frame.url;
130 130
131 // Do not process SW resources. 131 // Do not process SW resources.
132 if (this.target().isPage()) 132 if (this.target().hasBrowserCapability())
133 this._addFramesRecursively(null, mainFramePayload); 133 this._addFramesRecursively(null, mainFramePayload);
134 else 134 else
135 this._addSecurityOrigin(mainFramePayload.frame.securityOrigin); 135 this._addSecurityOrigin(mainFramePayload.frame.securityOrigin);
136 136
137 this._dispatchInspectedURLChanged(); 137 this._dispatchInspectedURLChanged();
138 this._cachedResourcesProcessed = true; 138 this._cachedResourcesProcessed = true;
139 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes. CachedResourcesLoaded); 139 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes. CachedResourcesLoaded);
140 }, 140 },
141 141
142 /** 142 /**
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 }, 971 },
972 972
973 /** 973 /**
974 * @override 974 * @override
975 */ 975 */
976 interstitialHidden: function() 976 interstitialHidden: function()
977 { 977 {
978 // Frontend is not interested in interstitials. 978 // Frontend is not interested in interstitials.
979 } 979 }
980 } 980 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698