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

Unified 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: comments addressed Created 4 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/ResourceTreeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
index d6f98629ef3381fa5e610394070afd98ff1f4838..0539a60ab96e10b5eed5f5346626c7eb5c668dc4 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
@@ -461,6 +461,28 @@ WebInspector.ResourceTreeModel.prototype = {
this._agent.reload(bypassCache, scriptToEvaluateOnLoad);
},
+ /**
+ * @param {function(string, ?string,!Array<!PageAgent.AppManifestError>)} callback
+ */
+ fetchAppManifest: function(callback)
+ {
+ this._agent.getAppManifest(myCallback);
+ /**
+ * @param {?Protocol.Error} protocolError
+ * @param {string} url
+ * @param {!Array<!PageAgent.AppManifestError>} errors
+ * @param {string=} data
+ */
+ function myCallback(protocolError, url, errors, data)
+ {
+ if (protocolError) {
+ callback(url, null, []);
+ return;
+ }
+ callback(url, data || null, errors);
+ }
+ },
+
__proto__: WebInspector.SDKModel.prototype
}

Powered by Google App Engine
This is Rietveld 408576698