| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 void ServiceWorkerContextWrapper::AddObserver( | 613 void ServiceWorkerContextWrapper::AddObserver( |
| 614 ServiceWorkerContextObserver* observer) { | 614 ServiceWorkerContextObserver* observer) { |
| 615 observer_list_->AddObserver(observer); | 615 observer_list_->AddObserver(observer); |
| 616 } | 616 } |
| 617 | 617 |
| 618 void ServiceWorkerContextWrapper::RemoveObserver( | 618 void ServiceWorkerContextWrapper::RemoveObserver( |
| 619 ServiceWorkerContextObserver* observer) { | 619 ServiceWorkerContextObserver* observer) { |
| 620 observer_list_->RemoveObserver(observer); | 620 observer_list_->RemoveObserver(observer); |
| 621 } | 621 } |
| 622 | 622 |
| 623 void ServiceWorkerContextWrapper::RemoveNavigationProviderHost( |
| 624 int provider_id) { |
| 625 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 626 context_core_->RemoveNavigationProviderHost(provider_id); |
| 627 } |
| 628 |
| 623 void ServiceWorkerContextWrapper::InitInternal( | 629 void ServiceWorkerContextWrapper::InitInternal( |
| 624 const base::FilePath& user_data_directory, | 630 const base::FilePath& user_data_directory, |
| 625 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, | 631 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, |
| 626 const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, | 632 const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, |
| 627 storage::QuotaManagerProxy* quota_manager_proxy, | 633 storage::QuotaManagerProxy* quota_manager_proxy, |
| 628 storage::SpecialStoragePolicy* special_storage_policy) { | 634 storage::SpecialStoragePolicy* special_storage_policy) { |
| 629 if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { | 635 if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
| 630 BrowserThread::PostTask( | 636 BrowserThread::PostTask( |
| 631 BrowserThread::IO, | 637 BrowserThread::IO, |
| 632 FROM_HERE, | 638 FROM_HERE, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 observer_list_->Notify(FROM_HERE, | 681 observer_list_->Notify(FROM_HERE, |
| 676 &ServiceWorkerContextObserver::OnStorageWiped); | 682 &ServiceWorkerContextObserver::OnStorageWiped); |
| 677 } | 683 } |
| 678 | 684 |
| 679 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { | 685 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { |
| 680 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 686 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 681 return context_core_.get(); | 687 return context_core_.get(); |
| 682 } | 688 } |
| 683 | 689 |
| 684 } // namespace content | 690 } // namespace content |
| OLD | NEW |