| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |