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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: 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 5234 matching lines...) Expand 10 before | Expand all | Expand 10 after
5425 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host); 5425 RenderViewHost* render_view_host = RenderViewHost::From(render_widget_host);
5426 if (!render_view_host) 5426 if (!render_view_host)
5427 continue; 5427 continue;
5428 render_view_host_set.insert(render_view_host); 5428 render_view_host_set.insert(render_view_host);
5429 } 5429 }
5430 for (RenderViewHost* render_view_host : render_view_host_set) 5430 for (RenderViewHost* render_view_host : render_view_host_set)
5431 render_view_host->OnWebkitPreferencesChanged(); 5431 render_view_host->OnWebkitPreferencesChanged();
5432 } 5432 }
5433 5433
5434 } // namespace content 5434 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698