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

Unified Diff: Source/devtools/front_end/sdk/ServiceWorkerManager.js

Issue 1023293004: [DevTools] Introduce Unregister/Start/Stop/Inspect buttons to ServiceWorkersView [2/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated pfeldman's comment Created 5 years, 9 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
« no previous file with comments | « Source/devtools/front_end/resources/serviceWorkersView.css ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/ServiceWorkerManager.js
diff --git a/Source/devtools/front_end/sdk/ServiceWorkerManager.js b/Source/devtools/front_end/sdk/ServiceWorkerManager.js
index 18651e3da921ba4b09437debb938a3e6a6b60656..4ec4add621392e0a350bac7962a3720aeefb6002 100644
--- a/Source/devtools/front_end/sdk/ServiceWorkerManager.js
+++ b/Source/devtools/front_end/sdk/ServiceWorkerManager.js
@@ -114,6 +114,38 @@ WebInspector.ServiceWorkerManager.prototype = {
},
/**
+ * @param {string} scope
+ */
+ unregister: function(scope)
+ {
+ this.target().serviceWorkerAgent().unregister(scope);
+ },
+
+ /**
+ * @param {string} scope
+ */
+ startWorker: function(scope)
+ {
+ this.target().serviceWorkerAgent().startWorker(scope);
+ },
+
+ /**
+ * @param {string} versionId
+ */
+ stopWorker: function(versionId)
+ {
+ this.target().serviceWorkerAgent().stopWorker(versionId);
+ },
+
+ /**
+ * @param {string} versionId
+ */
+ inspectWorker: function(versionId)
+ {
+ this.target().serviceWorkerAgent().inspectWorker(versionId);
+ },
+
+ /**
* @param {string} workerId
* @param {string} url
*/
« no previous file with comments | « Source/devtools/front_end/resources/serviceWorkersView.css ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698