| 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 "content/browser/devtools/protocol/devtools_protocol_handler.h" | 10 #include "content/browser/devtools/protocol/devtools_protocol_handler.h" |
| 11 #include "content/browser/devtools/worker_devtools_manager.h" | 11 #include "content/browser/devtools/service_worker_devtools_manager.h" |
| 12 #include "content/public/browser/devtools_agent_host.h" | 12 #include "content/public/browser/devtools_agent_host.h" |
| 13 #include "content/public/browser/devtools_agent_host_client.h" | 13 #include "content/public/browser/devtools_agent_host_client.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 namespace devtools { | 16 namespace devtools { |
| 17 namespace service_worker { | 17 namespace service_worker { |
| 18 | 18 |
| 19 class ServiceWorkerHandler : public DevToolsAgentHostClient, | 19 class ServiceWorkerHandler : public DevToolsAgentHostClient, |
| 20 public WorkerDevToolsManager::Observer { | 20 public ServiceWorkerDevToolsManager::Observer { |
| 21 public: | 21 public: |
| 22 typedef DevToolsProtocolClient::Response Response; | 22 typedef DevToolsProtocolClient::Response Response; |
| 23 | 23 |
| 24 ServiceWorkerHandler(); | 24 ServiceWorkerHandler(); |
| 25 ~ServiceWorkerHandler() override; | 25 ~ServiceWorkerHandler() override; |
| 26 | 26 |
| 27 void SetClient(scoped_ptr<Client> client); | 27 void SetClient(scoped_ptr<Client> client); |
| 28 void Detached(); | 28 void Detached(); |
| 29 | 29 |
| 30 // Protocol 'service worker' domain implementation. | 30 // Protocol 'service worker' domain implementation. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 AttachedHosts attached_hosts_; | 52 AttachedHosts attached_hosts_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); | 54 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace service_worker | 57 } // namespace service_worker |
| 58 } // namespace devtools | 58 } // namespace devtools |
| 59 } // namespace content | 59 } // namespace content |
| 60 | 60 |
| 61 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 61 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| OLD | NEW |