| 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_registration_handle.h" | 5 #include "content/browser/service_worker/service_worker_registration_handle.h" |
| 6 | 6 |
| 7 #include "content/browser/service_worker/service_worker_context_core.h" | 7 #include "content/browser/service_worker/service_worker_context_core.h" |
| 8 #include "content/browser/service_worker/service_worker_handle.h" | 8 #include "content/browser/service_worker/service_worker_handle.h" |
| 9 #include "content/common/service_worker/service_worker_messages.h" | 9 #include "content/common/service_worker/service_worker_messages.h" |
| 10 #include "content/common/service_worker/service_worker_types.h" | 10 #include "content/common/service_worker/service_worker_types.h" |
| 11 #include "content/public/common/service_worker_modes.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 ServiceWorkerRegistrationHandle::ServiceWorkerRegistrationHandle( | 15 ServiceWorkerRegistrationHandle::ServiceWorkerRegistrationHandle( |
| 15 base::WeakPtr<ServiceWorkerContextCore> context, | 16 base::WeakPtr<ServiceWorkerContextCore> context, |
| 16 base::WeakPtr<ServiceWorkerProviderHost> provider_host, | 17 base::WeakPtr<ServiceWorkerProviderHost> provider_host, |
| 17 ServiceWorkerRegistration* registration) | 18 ServiceWorkerRegistration* registration) |
| 18 : context_(context), | 19 : context_(context), |
| 19 provider_host_(provider_host), | 20 provider_host_(provider_host), |
| 20 provider_id_(provider_host ? provider_host->provider_id() | 21 provider_id_(provider_host ? provider_host->provider_id() |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 if (!provider_host_) | 99 if (!provider_host_) |
| 99 return; // Could be nullptr in some tests. | 100 return; // Could be nullptr in some tests. |
| 100 provider_host_->SendSetVersionAttributesMessage(handle_id_, | 101 provider_host_->SendSetVersionAttributesMessage(handle_id_, |
| 101 changed_mask, | 102 changed_mask, |
| 102 installing_version, | 103 installing_version, |
| 103 waiting_version, | 104 waiting_version, |
| 104 active_version); | 105 active_version); |
| 105 } | 106 } |
| 106 | 107 |
| 107 } // namespace content | 108 } // namespace content |
| OLD | NEW |