| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Protocol 'service worker' domain implementation. | 46 // Protocol 'service worker' domain implementation. |
| 47 Response Enable(); | 47 Response Enable(); |
| 48 Response Disable(); | 48 Response Disable(); |
| 49 Response SendMessage(const std::string& worker_id, | 49 Response SendMessage(const std::string& worker_id, |
| 50 const std::string& message); | 50 const std::string& message); |
| 51 Response Stop(const std::string& worker_id); | 51 Response Stop(const std::string& worker_id); |
| 52 Response Unregister(const std::string& scope_url); | 52 Response Unregister(const std::string& scope_url); |
| 53 Response StartWorker(const std::string& scope_url); | 53 Response StartWorker(const std::string& scope_url); |
| 54 Response StopWorker(const std::string& version_id); | 54 Response StopWorker(const std::string& version_id); |
| 55 Response InspectWorker(const std::string& version_id); | 55 Response InspectWorker(const std::string& version_id); |
| 56 Response DetachWorker(const std::string& worker_id); |
| 56 Response SetDebugOnStart(bool debug_on_start); | 57 Response SetDebugOnStart(bool debug_on_start); |
| 57 | 58 |
| 58 // WorkerDevToolsManager::Observer implementation. | 59 // WorkerDevToolsManager::Observer implementation. |
| 59 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override; | 60 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override; |
| 60 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override; | 61 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override; |
| 61 void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) override; | 62 void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) override; |
| 62 void DebugOnStartUpdated(bool debug_on_start) override; | 63 void DebugOnStartUpdated(bool debug_on_start) override; |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 // DevToolsAgentHostClient overrides. | 66 // DevToolsAgentHostClient overrides. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 92 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; | 93 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); | 95 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace service_worker | 98 } // namespace service_worker |
| 98 } // namespace devtools | 99 } // namespace devtools |
| 99 } // namespace content | 100 } // namespace content |
| 100 | 101 |
| 101 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 102 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| OLD | NEW |