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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 namespace content { 169 namespace content {
170 namespace { 170 namespace {
171 171
172 const int kMinimumDelayBetweenLoadingUpdatesMS = 100; 172 const int kMinimumDelayBetweenLoadingUpdatesMS = 100;
173 const char kDotGoogleDotCom[] = ".google.com"; 173 const char kDotGoogleDotCom[] = ".google.com";
174 174
175 #if defined(OS_ANDROID) 175 #if defined(OS_ANDROID)
176 const char kWebContentsAndroidKey[] = "web_contents_android"; 176 const char kWebContentsAndroidKey[] = "web_contents_android";
177 #endif // OS_ANDROID 177 #endif // OS_ANDROID
178 178
179 base::LazyInstance<std::vector<WebContentsImpl::CreatedCallback> > 179 base::LazyInstance<std::vector<WebContentsImpl::CreatedCallback>>::
180 g_created_callbacks = LAZY_INSTANCE_INITIALIZER; 180 DestructorAtExit g_created_callbacks = LAZY_INSTANCE_INITIALIZER;
181 181
182 void NotifyCacheOnIO( 182 void NotifyCacheOnIO(
183 scoped_refptr<net::URLRequestContextGetter> request_context, 183 scoped_refptr<net::URLRequestContextGetter> request_context,
184 const GURL& url, 184 const GURL& url,
185 const std::string& http_method) { 185 const std::string& http_method) {
186 net::HttpCache* cache = request_context->GetURLRequestContext()-> 186 net::HttpCache* cache = request_context->GetURLRequestContext()->
187 http_transaction_factory()->GetCache(); 187 http_transaction_factory()->GetCache();
188 if (cache) 188 if (cache)
189 cache->OnExternalCacheHit(url, http_method); 189 cache->OnExternalCacheHit(url, http_method);
190 } 190 }
(...skipping 5212 matching lines...) Expand 10 before | Expand all | Expand 10 after
5403 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5403 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5404 if (!render_view_host) 5404 if (!render_view_host)
5405 continue; 5405 continue;
5406 render_view_host_set.insert(render_view_host); 5406 render_view_host_set.insert(render_view_host);
5407 } 5407 }
5408 for (RenderViewHost* render_view_host : render_view_host_set) 5408 for (RenderViewHost* render_view_host : render_view_host_set)
5409 render_view_host->OnWebkitPreferencesChanged(); 5409 render_view_host->OnWebkitPreferencesChanged();
5410 } 5410 }
5411 5411
5412 } // namespace content 5412 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | content/browser/webrtc/webrtc_internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698