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/child/service_worker/web_service_worker_registration_impl.h" | 5 #include "content/child/service_worker/web_service_worker_registration_impl.h" |
6 | 6 |
7 #include "content/child/service_worker/service_worker_dispatcher.h" | 7 #include "content/child/service_worker/service_worker_dispatcher.h" |
8 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" | 8 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" |
9 #include "content/child/service_worker/web_service_worker_impl.h" | 9 #include "content/child/service_worker/web_service_worker_impl.h" |
10 #include "content/child/service_worker/web_service_worker_provider_impl.h" | 10 #include "content/child/service_worker/web_service_worker_provider_impl.h" |
11 #include "content/common/service_worker/service_worker_types.h" | 11 #include "content/common/service_worker/service_worker_types.h" |
12 #include "third_party/WebKit/public/platform/WebServiceWorkerRegistrationProxy.h
" | 12 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRegistrationProxy.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 WebServiceWorkerRegistrationImpl::QueuedTask::QueuedTask( | 16 WebServiceWorkerRegistrationImpl::QueuedTask::QueuedTask( |
17 QueuedTaskType type, | 17 QueuedTaskType type, |
18 blink::WebServiceWorker* worker) | 18 blink::WebServiceWorker* worker) |
19 : type(type), | 19 : type(type), |
20 worker(worker) { | 20 worker(worker) { |
21 } | 21 } |
22 | 22 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 DCHECK(dispatcher); | 135 DCHECK(dispatcher); |
136 dispatcher->UnregisterServiceWorker(provider_impl->provider_id(), | 136 dispatcher->UnregisterServiceWorker(provider_impl->provider_id(), |
137 registration_id(), callbacks); | 137 registration_id(), callbacks); |
138 } | 138 } |
139 | 139 |
140 int64 WebServiceWorkerRegistrationImpl::registration_id() const { | 140 int64 WebServiceWorkerRegistrationImpl::registration_id() const { |
141 return handle_ref_->registration_id(); | 141 return handle_ref_->registration_id(); |
142 } | 142 } |
143 | 143 |
144 } // namespace content | 144 } // namespace content |
OLD | NEW |