OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.h" | 5 #include "content/browser/service_worker/service_worker_registration.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_info.h" | 8 #include "content/browser/service_worker/service_worker_info.h" |
9 #include "content/browser/service_worker/service_worker_register_job.h" | 9 #include "content/browser/service_worker/service_worker_register_job.h" |
10 #include "content/browser/service_worker/service_worker_utils.h" | 10 #include "content/browser/service_worker/service_worker_utils.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 | 315 |
316 FOR_EACH_OBSERVER( | 316 FOR_EACH_OBSERVER( |
317 Listener, listeners_, OnRegistrationFinishedUninstalling(this)); | 317 Listener, listeners_, OnRegistrationFinishedUninstalling(this)); |
318 } | 318 } |
319 | 319 |
320 void ServiceWorkerRegistration::OnRestoreFinished( | 320 void ServiceWorkerRegistration::OnRestoreFinished( |
321 const StatusCallback& callback, | 321 const StatusCallback& callback, |
322 scoped_refptr<ServiceWorkerVersion> version, | 322 scoped_refptr<ServiceWorkerVersion> version, |
323 ServiceWorkerStatusCode status) { | 323 ServiceWorkerStatusCode status) { |
324 if (!context_) { | 324 if (!context_) { |
325 callback.Run(ServiceWorkerStatusCode::SERVICE_WORKER_ERROR_ABORT); | 325 callback.Run(SERVICE_WORKER_ERROR_ABORT); |
michaeln
2014/09/10 22:36:57
lgtm, thnx
Mostyn Bramley-Moore
2014/09/10 23:13:35
Acknowledged.
| |
326 return; | 326 return; |
327 } | 327 } |
328 context_->storage()->NotifyDoneInstallingRegistration( | 328 context_->storage()->NotifyDoneInstallingRegistration( |
329 this, version.get(), status); | 329 this, version.get(), status); |
330 callback.Run(status); | 330 callback.Run(status); |
331 } | 331 } |
332 | 332 |
333 } // namespace content | 333 } // namespace content |
OLD | NEW |