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

Unified Diff: content/browser/devtools/protocol/service_worker_handler.h

Issue 1029553002: [DevTools] Introduce Unregister/Start/Stop/Inspect buttons to ServiceWorkersView [1/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix indent 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 | « no previous file | content/browser/devtools/protocol/service_worker_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/service_worker_handler.h
diff --git a/content/browser/devtools/protocol/service_worker_handler.h b/content/browser/devtools/protocol/service_worker_handler.h
index 16caa98edbfcff13cecd643bc02436d5d9d3528d..c23d002d8943290c1055e9a8c831286c5297e601 100644
--- a/content/browser/devtools/protocol/service_worker_handler.h
+++ b/content/browser/devtools/protocol/service_worker_handler.h
@@ -48,6 +48,10 @@ class ServiceWorkerHandler : public DevToolsAgentHostClient,
Response SendMessage(const std::string& worker_id,
const std::string& message);
Response Stop(const std::string& worker_id);
+ Response Unregister(const std::string& scope_url);
+ Response StartWorker(const std::string& scope_url);
+ Response StopWorker(const std::string& version_id);
+ Response InspectWorker(const std::string& version_id);
// WorkerDevToolsManager::Observer implementation.
void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override;
@@ -69,6 +73,8 @@ class ServiceWorkerHandler : public DevToolsAgentHostClient,
void OnWorkerVersionUpdated(
const std::vector<ServiceWorkerVersionInfo>& registrations);
+ void OpenNewDevToolsWindow(int process_id, int devtools_agent_route_id);
+
scoped_refptr<ServiceWorkerContextWrapper> context_;
scoped_ptr<Client> client_;
ServiceWorkerDevToolsAgentHost::Map attached_hosts_;
« no previous file with comments | « no previous file | content/browser/devtools/protocol/service_worker_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698