| 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 #include "content/browser/devtools/protocol/service_worker_handler.h" | 5 #include "content/browser/devtools/protocol/service_worker_handler.h" |
| 6 | 6 |
| 7 #include "content/browser/devtools/service_worker_devtools_manager.h" | |
| 8 #include "content/public/browser/devtools_agent_host.h" | 7 #include "content/public/browser/devtools_agent_host.h" |
| 9 | 8 |
| 10 namespace content { | 9 namespace content { |
| 11 namespace devtools { | 10 namespace devtools { |
| 12 namespace service_worker { | 11 namespace service_worker { |
| 13 | 12 |
| 14 using Response = DevToolsProtocolClient::Response; | 13 using Response = DevToolsProtocolClient::Response; |
| 15 | 14 |
| 16 ServiceWorkerHandler::ServiceWorkerHandler() { | 15 ServiceWorkerHandler::ServiceWorkerHandler() { |
| 17 } | 16 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 if (it == attached_hosts_.end()) | 112 if (it == attached_hosts_.end()) |
| 114 return; | 113 return; |
| 115 client_->WorkerTerminated(WorkerTerminatedParams::Create()-> | 114 client_->WorkerTerminated(WorkerTerminatedParams::Create()-> |
| 116 set_worker_id(host->GetId())); | 115 set_worker_id(host->GetId())); |
| 117 attached_hosts_.erase(it); | 116 attached_hosts_.erase(it); |
| 118 } | 117 } |
| 119 | 118 |
| 120 } // namespace service_worker | 119 } // namespace service_worker |
| 121 } // namespace devtools | 120 } // namespace devtools |
| 122 } // namespace content | 121 } // namespace content |
| OLD | NEW |