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 14 matching lines...) Expand all Loading... |
25 #include "content/browser/service_worker/service_worker_context_observer.h" | 25 #include "content/browser/service_worker/service_worker_context_observer.h" |
26 #include "content/browser/service_worker/service_worker_process_manager.h" | 26 #include "content/browser/service_worker/service_worker_process_manager.h" |
27 #include "content/browser/service_worker/service_worker_quota_client.h" | 27 #include "content/browser/service_worker/service_worker_quota_client.h" |
28 #include "content/browser/service_worker/service_worker_version.h" | 28 #include "content/browser/service_worker/service_worker_version.h" |
29 #include "content/browser/storage_partition_impl.h" | 29 #include "content/browser/storage_partition_impl.h" |
30 #include "content/common/service_worker/service_worker_utils.h" | 30 #include "content/common/service_worker/service_worker_utils.h" |
31 #include "content/public/browser/browser_context.h" | 31 #include "content/public/browser/browser_context.h" |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #include "content/public/browser/render_process_host.h" | 33 #include "content/public/browser/render_process_host.h" |
34 #include "net/base/url_util.h" | 34 #include "net/base/url_util.h" |
| 35 #include "net/url_request/url_request_context_getter.h" |
35 #include "storage/browser/quota/quota_manager_proxy.h" | 36 #include "storage/browser/quota/quota_manager_proxy.h" |
36 #include "storage/browser/quota/special_storage_policy.h" | 37 #include "storage/browser/quota/special_storage_policy.h" |
37 #include "third_party/WebKit/public/platform/WebNavigationHintType.h" | 38 #include "third_party/WebKit/public/platform/WebNavigationHintType.h" |
38 | 39 |
39 namespace content { | 40 namespace content { |
40 | 41 |
41 namespace { | 42 namespace { |
42 | 43 |
43 typedef std::set<std::string> HeaderNameSet; | 44 typedef std::set<std::string> HeaderNameSet; |
44 base::LazyInstance<HeaderNameSet> g_excluded_header_name_set = | 45 base::LazyInstance<HeaderNameSet> g_excluded_header_name_set = |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 observer_list_->Notify(FROM_HERE, | 816 observer_list_->Notify(FROM_HERE, |
816 &ServiceWorkerContextObserver::OnStorageWiped); | 817 &ServiceWorkerContextObserver::OnStorageWiped); |
817 } | 818 } |
818 | 819 |
819 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { | 820 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { |
820 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 821 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
821 return context_core_.get(); | 822 return context_core_.get(); |
822 } | 823 } |
823 | 824 |
824 } // namespace content | 825 } // namespace content |
OLD | NEW |