| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 UpdateRegistration(const std::string& scope_url); | 55 Response UpdateRegistration(const std::string& scope_url); |
| 56 Response InspectWorker(const std::string& version_id); | 56 Response InspectWorker(const std::string& version_id); |
| 57 Response SkipWaiting(const std::string& version_id); | 57 Response SkipWaiting(const std::string& version_id); |
| 58 Response SetDebugOnStart(bool debug_on_start); | 58 Response SetDebugOnStart(bool debug_on_start); |
| 59 Response DeliverPushMessage(const std::string& origin, | 59 Response DeliverPushMessage(const std::string& origin, |
| 60 const std::string& registration_id, | 60 const std::string& registration_id, |
| 61 const std::string& data); | 61 const std::string& data); |
| 62 // TODO(horo): I will remove it in crrev.com/1143363009. |
| 62 Response GetTargetInfo(DevToolsCommandId command_id, | 63 Response GetTargetInfo(DevToolsCommandId command_id, |
| 63 const std::string& target_id); | 64 const std::string& target_id); |
| 65 Response GetTargetInfo(const std::string& target_id, |
| 66 scoped_refptr<TargetInfo>* target_info); |
| 64 Response ActivateTarget(const std::string& target_id); | 67 Response ActivateTarget(const std::string& target_id); |
| 65 | 68 |
| 66 // WorkerDevToolsManager::Observer implementation. | 69 // WorkerDevToolsManager::Observer implementation. |
| 67 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override; | 70 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override; |
| 68 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override; | 71 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override; |
| 69 void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) override; | 72 void WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) override; |
| 70 void DebugOnStartUpdated(bool debug_on_start) override; | 73 void DebugOnStartUpdated(bool debug_on_start) override; |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 // DevToolsAgentHostClient overrides. | 76 // DevToolsAgentHostClient overrides. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 100 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; | 103 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; |
| 101 | 104 |
| 102 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); | 105 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); |
| 103 }; | 106 }; |
| 104 | 107 |
| 105 } // namespace service_worker | 108 } // namespace service_worker |
| 106 } // namespace devtools | 109 } // namespace devtools |
| 107 } // namespace content | 110 } // namespace content |
| 108 | 111 |
| 109 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 112 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| OLD | NEW |