Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/tracing/background_tracing_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698