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_context_wrapper.h" | 5 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 void ServiceWorkerContextWrapper::DidDeleteAndStartOver( | 421 void ServiceWorkerContextWrapper::DidDeleteAndStartOver( |
422 ServiceWorkerStatusCode status) { | 422 ServiceWorkerStatusCode status) { |
423 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 423 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
424 if (status != SERVICE_WORKER_OK) { | 424 if (status != SERVICE_WORKER_OK) { |
425 context_core_.reset(); | 425 context_core_.reset(); |
426 return; | 426 return; |
427 } | 427 } |
428 context_core_.reset(new ServiceWorkerContextCore(context_core_.get(), this)); | 428 context_core_.reset(new ServiceWorkerContextCore(context_core_.get(), this)); |
429 DVLOG(1) << "Restarted ServiceWorkerContextCore successfully."; | 429 DVLOG(1) << "Restarted ServiceWorkerContextCore successfully."; |
430 | 430 |
431 observer_list_->Notify(&ServiceWorkerContextObserver::OnStorageWiped); | 431 observer_list_->Notify(FROM_HERE, |
| 432 &ServiceWorkerContextObserver::OnStorageWiped); |
432 } | 433 } |
433 | 434 |
434 } // namespace content | 435 } // namespace content |
OLD | NEW |