OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/service_worker_devtools_manager.h" | 5 #include "content/browser/devtools/service_worker_devtools_manager.h" |
6 | 6 |
7 #include "content/browser/devtools/service_worker_devtools_agent_host.h" | 7 #include "content/browser/devtools/service_worker_devtools_agent_host.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/render_process_host.h" | 9 #include "content/public/browser/render_process_host.h" |
10 #include "content/public/browser/worker_service.h" | 10 #include "content/public/browser/worker_service.h" |
11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::ServiceWorkerIdentifier( | 15 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::ServiceWorkerIdentifier( |
16 const ServiceWorkerContextCore* context, | 16 const ServiceWorkerContextCore* context, |
17 base::WeakPtr<ServiceWorkerContextCore> context_weak, | 17 base::WeakPtr<ServiceWorkerContextCore> context_weak, |
18 int64 version_id, | 18 int64_t version_id, |
19 const GURL& url) | 19 const GURL& url) |
20 : context_(context), | 20 : context_(context), |
21 context_weak_(context_weak), | 21 context_weak_(context_weak), |
22 version_id_(version_id), | 22 version_id_(version_id), |
23 url_(url) { | 23 url_(url) {} |
24 } | |
25 | 24 |
26 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::ServiceWorkerIdentifier( | 25 ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::ServiceWorkerIdentifier( |
27 const ServiceWorkerIdentifier& other) | 26 const ServiceWorkerIdentifier& other) |
28 : context_(other.context_), | 27 : context_(other.context_), |
29 context_weak_(other.context_weak_), | 28 context_weak_(other.context_weak_), |
30 version_id_(other.version_id_), | 29 version_id_(other.version_id_), |
31 url_(other.url_) { | 30 url_(other.url_) { |
32 } | 31 } |
33 | 32 |
34 ServiceWorkerDevToolsManager:: | 33 ServiceWorkerDevToolsManager:: |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 break; | 175 break; |
177 } | 176 } |
178 return it; | 177 return it; |
179 } | 178 } |
180 | 179 |
181 void ServiceWorkerDevToolsManager::ResetForTesting() { | 180 void ServiceWorkerDevToolsManager::ResetForTesting() { |
182 workers_.clear(); | 181 workers_.clear(); |
183 } | 182 } |
184 | 183 |
185 } // namespace content | 184 } // namespace content |
OLD | NEW |