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

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

Issue 1942523002: DevTools: render parsed manifest data in the resources panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTy pes.PageReloadRequested); 454 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTy pes.PageReloadRequested);
455 if (this._reloadSuspensionCount) { 455 if (this._reloadSuspensionCount) {
456 this._pendingReloadOptions = [bypassCache, scriptToEvaluateOnLoad]; 456 this._pendingReloadOptions = [bypassCache, scriptToEvaluateOnLoad];
457 return; 457 return;
458 } 458 }
459 this._pendingReloadOptions = null; 459 this._pendingReloadOptions = null;
460 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes. WillReloadPage); 460 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes. WillReloadPage);
461 this._agent.reload(bypassCache, scriptToEvaluateOnLoad); 461 this._agent.reload(bypassCache, scriptToEvaluateOnLoad);
462 }, 462 },
463 463
464 /**
465 * @param {function(string, ?string,!Array<!PageAgent.AppManifestError>)} ca llback
dgozman 2016/04/30 00:38:19 style: space before comma
466 */
467 fetchAppManifest: function(callback)
468 {
469 this._agent.getAppManifest(myCallback);
470 /**
471 * @param {?Protocol.Error} protocolError
472 * @param {string} url
473 * @param {!Array<!PageAgent.AppManifestError>} errors
474 * @param {string=} data
475 */
476 function myCallback(protocolError, url, errors, data)
477 {
478 if (protocolError) {
479 callback(url, null, []);
480 return;
481 }
482 callback(url, data || null, errors);
483 }
484 },
485
464 __proto__: WebInspector.SDKModel.prototype 486 __proto__: WebInspector.SDKModel.prototype
465 } 487 }
466 488
467 /** 489 /**
468 * @constructor 490 * @constructor
469 * @param {!WebInspector.ResourceTreeModel} model 491 * @param {!WebInspector.ResourceTreeModel} model
470 * @param {?WebInspector.ResourceTreeFrame} parentFrame 492 * @param {?WebInspector.ResourceTreeFrame} parentFrame
471 * @param {!PageAgent.FrameId} frameId 493 * @param {!PageAgent.FrameId} frameId
472 * @param {!PageAgent.Frame=} payload 494 * @param {!PageAgent.Frame=} payload
473 */ 495 */
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 }, 922 },
901 923
902 /** 924 /**
903 * @override 925 * @override
904 */ 926 */
905 interstitialHidden: function() 927 interstitialHidden: function()
906 { 928 {
907 // Frontend is not interested in interstitials. 929 // Frontend is not interested in interstitials.
908 } 930 }
909 } 931 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698