| 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 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/service_worker/service_worker_context_core.h" | 23 #include "content/browser/service_worker/service_worker_context_core.h" |
| 24 #include "content/browser/service_worker/service_worker_context_observer.h" | 24 #include "content/browser/service_worker/service_worker_context_observer.h" |
| 25 #include "content/browser/service_worker/service_worker_process_manager.h" | 25 #include "content/browser/service_worker/service_worker_process_manager.h" |
| 26 #include "content/browser/service_worker/service_worker_quota_client.h" | 26 #include "content/browser/service_worker/service_worker_quota_client.h" |
| 27 #include "content/browser/service_worker/service_worker_version.h" | 27 #include "content/browser/service_worker/service_worker_version.h" |
| 28 #include "content/browser/storage_partition_impl.h" | 28 #include "content/browser/storage_partition_impl.h" |
| 29 #include "content/common/service_worker/service_worker_utils.h" | 29 #include "content/common/service_worker/service_worker_utils.h" |
| 30 #include "content/public/browser/browser_context.h" | 30 #include "content/public/browser/browser_context.h" |
| 31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 32 #include "net/base/url_util.h" | 32 #include "net/base/url_util.h" |
| 33 #include "net/url_request/url_request_context_getter.h" |
| 33 #include "storage/browser/quota/quota_manager_proxy.h" | 34 #include "storage/browser/quota/quota_manager_proxy.h" |
| 34 #include "storage/browser/quota/special_storage_policy.h" | 35 #include "storage/browser/quota/special_storage_policy.h" |
| 35 | 36 |
| 36 namespace content { | 37 namespace content { |
| 37 | 38 |
| 38 namespace { | 39 namespace { |
| 39 | 40 |
| 40 typedef std::set<std::string> HeaderNameSet; | 41 typedef std::set<std::string> HeaderNameSet; |
| 41 base::LazyInstance<HeaderNameSet> g_excluded_header_name_set = | 42 base::LazyInstance<HeaderNameSet> g_excluded_header_name_set = |
| 42 LAZY_INSTANCE_INITIALIZER; | 43 LAZY_INSTANCE_INITIALIZER; |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 observer_list_->Notify(FROM_HERE, | 741 observer_list_->Notify(FROM_HERE, |
| 741 &ServiceWorkerContextObserver::OnStorageWiped); | 742 &ServiceWorkerContextObserver::OnStorageWiped); |
| 742 } | 743 } |
| 743 | 744 |
| 744 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { | 745 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { |
| 745 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 746 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 746 return context_core_.get(); | 747 return context_core_.get(); |
| 747 } | 748 } |
| 748 | 749 |
| 749 } // namespace content | 750 } // namespace content |
| OLD | NEW |