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 25 matching lines...) Expand all Loading... |
36 #include "net/base/url_util.h" | 36 #include "net/base/url_util.h" |
37 #include "storage/browser/quota/quota_manager_proxy.h" | 37 #include "storage/browser/quota/quota_manager_proxy.h" |
38 #include "storage/browser/quota/special_storage_policy.h" | 38 #include "storage/browser/quota/special_storage_policy.h" |
39 #include "third_party/WebKit/public/platform/WebNavigationHintType.h" | 39 #include "third_party/WebKit/public/platform/WebNavigationHintType.h" |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
45 typedef std::set<std::string> HeaderNameSet; | 45 typedef std::set<std::string> HeaderNameSet; |
46 base::LazyInstance<HeaderNameSet> g_excluded_header_name_set = | 46 base::LazyInstance<HeaderNameSet>::DestructorAtExit g_excluded_header_name_set = |
47 LAZY_INSTANCE_INITIALIZER; | 47 LAZY_INSTANCE_INITIALIZER; |
48 | 48 |
49 void RunSoon(const base::Closure& closure) { | 49 void RunSoon(const base::Closure& closure) { |
50 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure); | 50 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure); |
51 } | 51 } |
52 | 52 |
53 void WorkerStarted(const ServiceWorkerContextWrapper::StatusCallback& callback, | 53 void WorkerStarted(const ServiceWorkerContextWrapper::StatusCallback& callback, |
54 ServiceWorkerStatusCode status) { | 54 ServiceWorkerStatusCode status) { |
55 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 55 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
56 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 56 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 observer_list_->Notify(FROM_HERE, | 923 observer_list_->Notify(FROM_HERE, |
924 &ServiceWorkerContextObserver::OnStorageWiped); | 924 &ServiceWorkerContextObserver::OnStorageWiped); |
925 } | 925 } |
926 | 926 |
927 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { | 927 ServiceWorkerContextCore* ServiceWorkerContextWrapper::context() { |
928 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 928 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
929 return context_core_.get(); | 929 return context_core_.get(); |
930 } | 930 } |
931 | 931 |
932 } // namespace content | 932 } // namespace content |
OLD | NEW |