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/service_worker/service_worker_info.h" | 5 #include "content/browser/service_worker/service_worker_info.h" |
6 | 6 |
7 #include "content/browser/service_worker/embedded_worker_status.h" | 7 #include "content/browser/service_worker/embedded_worker_status.h" |
8 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
| 9 #include "content/public/common/browser_side_navigation_policy.h" |
9 #include "content/public/common/child_process_host.h" | 10 #include "content/public/common/child_process_host.h" |
10 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 | 14 |
14 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() | 15 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() |
15 : ClientInfo(ChildProcessHost::kInvalidUniqueID, | 16 : ClientInfo(ChildProcessHost::kInvalidUniqueID, |
16 MSG_ROUTING_NONE, | 17 MSG_ROUTING_NONE, |
| 18 base::Callback<WebContents*(void)>(), |
17 SERVICE_WORKER_PROVIDER_UNKNOWN) {} | 19 SERVICE_WORKER_PROVIDER_UNKNOWN) {} |
18 | 20 |
19 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id, | 21 ServiceWorkerVersionInfo::ClientInfo::ClientInfo( |
20 int route_id, | 22 int process_id, |
21 ServiceWorkerProviderType type) | 23 int route_id, |
22 : process_id(process_id), route_id(route_id), type(type) { | 24 const base::Callback<WebContents*(void)>& web_contents_getter, |
23 } | 25 ServiceWorkerProviderType type) |
| 26 : process_id(process_id), |
| 27 route_id(route_id), |
| 28 web_contents_getter(web_contents_getter), |
| 29 type(type) {} |
| 30 |
| 31 ServiceWorkerVersionInfo::ClientInfo::ClientInfo( |
| 32 const ServiceWorkerVersionInfo::ClientInfo& other) = default; |
24 | 33 |
25 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { | 34 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { |
26 } | 35 } |
27 | 36 |
28 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() | 37 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() |
29 : running_status(EmbeddedWorkerStatus::STOPPED), | 38 : running_status(EmbeddedWorkerStatus::STOPPED), |
30 status(ServiceWorkerVersion::NEW), | 39 status(ServiceWorkerVersion::NEW), |
31 fetch_handler_existence( | 40 fetch_handler_existence( |
32 ServiceWorkerVersion::FetchHandlerExistence::UNKNOWN), | 41 ServiceWorkerVersion::FetchHandlerExistence::UNKNOWN), |
33 registration_id(kInvalidServiceWorkerRegistrationId), | 42 registration_id(kInvalidServiceWorkerRegistrationId), |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 waiting_version(waiting_version), | 99 waiting_version(waiting_version), |
91 installing_version(installing_version), | 100 installing_version(installing_version), |
92 stored_version_size_bytes(stored_version_size_bytes) {} | 101 stored_version_size_bytes(stored_version_size_bytes) {} |
93 | 102 |
94 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( | 103 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( |
95 const ServiceWorkerRegistrationInfo& other) = default; | 104 const ServiceWorkerRegistrationInfo& other) = default; |
96 | 105 |
97 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} | 106 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} |
98 | 107 |
99 } // namespace content | 108 } // namespace content |
OLD | NEW |