OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 7 |
| 8 #include "content/browser/devtools/embedded_worker_devtools_agent_host.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class ServiceWorkerDevToolsAgentHost : public EmbeddedWorkerDevToolsAgentHost { |
| 13 public: |
| 14 ServiceWorkerDevToolsAgentHost(WorkerId worker_id, |
| 15 const ServiceWorkerIdentifier& service_worker, |
| 16 bool debug_service_worker_on_start); |
| 17 |
| 18 // DevToolsAgentHost override. |
| 19 Type GetType() override; |
| 20 std::string GetTitle() override; |
| 21 GURL GetURL() override; |
| 22 bool Activate() override; |
| 23 bool Close() override; |
| 24 |
| 25 // IPCDevToolsAgentHost override. |
| 26 void OnClientAttached() override; |
| 27 void OnClientDetached() override; |
| 28 |
| 29 // EmbeddedWorkerDevToolsAgentHost override. |
| 30 bool Matches(const ServiceWorkerIdentifier& other) override; |
| 31 |
| 32 private: |
| 33 ~ServiceWorkerDevToolsAgentHost() override; |
| 34 scoped_ptr<ServiceWorkerIdentifier> service_worker_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost); |
| 37 }; |
| 38 |
| 39 } // namespace content |
| 40 |
| 41 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |