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

Side by Side Diff: content/browser/devtools/protocol/service_worker_handler.h

Issue 1893313007: DevTools: Attach all Service Workers except for old redundant ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated pfeldman's comment 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/service_worker_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 Response DeliverPushMessage(const std::string& origin, 61 Response DeliverPushMessage(const std::string& origin,
62 const std::string& registration_id, 62 const std::string& registration_id,
63 const std::string& data); 63 const std::string& data);
64 Response GetTargetInfo(const std::string& target_id, 64 Response GetTargetInfo(const std::string& target_id,
65 scoped_refptr<TargetInfo>* target_info); 65 scoped_refptr<TargetInfo>* target_info);
66 Response ActivateTarget(const std::string& target_id); 66 Response ActivateTarget(const std::string& target_id);
67 67
68 // WorkerDevToolsManager::Observer implementation. 68 // WorkerDevToolsManager::Observer implementation.
69 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override; 69 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override;
70 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override; 70 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override;
71 void WorkerVersionInstalled(ServiceWorkerDevToolsAgentHost* host) override;
72 void WorkerVersionDoomed(ServiceWorkerDevToolsAgentHost* host) override;
71 void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) override; 73 void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) override;
72 74
73 private: 75 private:
74 // DevToolsAgentHostClient overrides. 76 // DevToolsAgentHostClient overrides.
75 void DispatchProtocolMessage(DevToolsAgentHost* agent_host, 77 void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
76 const std::string& message) override; 78 const std::string& message) override;
77 void AgentHostClosed(DevToolsAgentHost* agent_host, 79 void AgentHostClosed(DevToolsAgentHost* agent_host,
78 bool replaced_with_another_client) override; 80 bool replaced_with_another_client) override;
79 81
80 void ReportWorkerCreated(ServiceWorkerDevToolsAgentHost* host); 82 void ReportWorkerCreated(ServiceWorkerDevToolsAgentHost* host);
(...skipping 21 matching lines...) Expand all
102 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; 104 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); 106 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler);
105 }; 107 };
106 108
107 } // namespace service_worker 109 } // namespace service_worker
108 } // namespace devtools 110 } // namespace devtools
109 } // namespace content 111 } // namespace content
110 112
111 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ 113 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_
OLDNEW
« 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