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 <utility> | 10 #include <utility> |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 context_core_.reset(); | 792 context_core_.reset(); |
793 return; | 793 return; |
794 } | 794 } |
795 context_core_.reset(new ServiceWorkerContextCore(context_core_.get(), this)); | 795 context_core_.reset(new ServiceWorkerContextCore(context_core_.get(), this)); |
796 DVLOG(1) << "Restarted ServiceWorkerContextCore successfully."; | 796 DVLOG(1) << "Restarted ServiceWorkerContextCore successfully."; |
797 | 797 |
798 observer_list_->Notify(FROM_HERE, | 798 observer_list_->Notify(FROM_HERE, |
799 &ServiceWorkerContextObserver::OnStorageWiped); | 799 &ServiceWorkerContextObserver::OnStorageWiped); |
800 } | 800 } |
801 | 801 |
| 802 void ServiceWorkerContextWrapper::BindWorkerFetchContext( |
| 803 int render_process_id, |
| 804 int service_worker_provider_id, |
| 805 mojom::ServiceWorkerWorkerClientAssociatedPtrInfo client_ptr_info) { |
| 806 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 807 context()->BindWorkerFetchContext(render_process_id, |
| 808 service_worker_provider_id, |
| 809 std::move(client_ptr_info)); |
| 810 } |
| 811 |
802 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { | 812 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { |
803 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 813 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
804 return context_core_.get(); | 814 return context_core_.get(); |
805 } | 815 } |
806 | 816 |
807 } // namespace content | 817 } // namespace content |
OLD | NEW |