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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/net/cache_stats.h » ('j') | chrome/browser/net/cache_stats.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 22 matching lines...) Expand all
33 #include "chrome/browser/extensions/extension_process_manager.h" 33 #include "chrome/browser/extensions/extension_process_manager.h"
34 #include "chrome/browser/extensions/extension_service.h" 34 #include "chrome/browser/extensions/extension_service.h"
35 #include "chrome/browser/extensions/extension_system.h" 35 #include "chrome/browser/extensions/extension_system.h"
36 #include "chrome/browser/extensions/extension_web_ui.h" 36 #include "chrome/browser/extensions/extension_web_ui.h"
37 #include "chrome/browser/extensions/extension_webkit_preferences.h" 37 #include "chrome/browser/extensions/extension_webkit_preferences.h"
38 #include "chrome/browser/geolocation/chrome_access_token_store.h" 38 #include "chrome/browser/geolocation/chrome_access_token_store.h"
39 #include "chrome/browser/google/google_util.h" 39 #include "chrome/browser/google/google_util.h"
40 #include "chrome/browser/gpu_util.h" 40 #include "chrome/browser/gpu_util.h"
41 #include "chrome/browser/infobars/infobar_tab_helper.h" 41 #include "chrome/browser/infobars/infobar_tab_helper.h"
42 #include "chrome/browser/media/media_internals.h" 42 #include "chrome/browser/media/media_internals.h"
43 #include "chrome/browser/net/cache_stats.h"
43 #include "chrome/browser/net/chrome_net_log.h" 44 #include "chrome/browser/net/chrome_net_log.h"
44 #include "chrome/browser/notifications/desktop_notification_service.h" 45 #include "chrome/browser/notifications/desktop_notification_service.h"
45 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 46 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
46 #include "chrome/browser/pepper_gtalk_message_filter.h" 47 #include "chrome/browser/pepper_gtalk_message_filter.h"
47 #include "chrome/browser/platform_util.h" 48 #include "chrome/browser/platform_util.h"
48 #include "chrome/browser/prefs/pref_service.h" 49 #include "chrome/browser/prefs/pref_service.h"
49 #include "chrome/browser/prefs/scoped_user_pref_update.h" 50 #include "chrome/browser/prefs/scoped_user_pref_update.h"
50 #include "chrome/browser/prerender/prerender_manager.h" 51 #include "chrome/browser/prerender/prerender_manager.h"
51 #include "chrome/browser/prerender/prerender_manager_factory.h" 52 #include "chrome/browser/prerender/prerender_manager_factory.h"
52 #include "chrome/browser/prerender/prerender_message_filter.h" 53 #include "chrome/browser/prerender/prerender_message_filter.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 void ChromeContentBrowserClient::RenderViewHostCreated( 433 void ChromeContentBrowserClient::RenderViewHostCreated(
433 RenderViewHost* render_view_host) { 434 RenderViewHost* render_view_host) {
434 435
435 SiteInstance* site_instance = render_view_host->GetSiteInstance(); 436 SiteInstance* site_instance = render_view_host->GetSiteInstance();
436 Profile* profile = Profile::FromBrowserContext( 437 Profile* profile = Profile::FromBrowserContext(
437 site_instance->GetBrowserContext()); 438 site_instance->GetBrowserContext());
438 439
439 new ChromeRenderViewHostObserver(render_view_host, 440 new ChromeRenderViewHostObserver(render_view_host,
440 profile->GetNetworkPredictor()); 441 profile->GetNetworkPredictor());
441 new ExtensionMessageHandler(render_view_host); 442 new ExtensionMessageHandler(render_view_host);
443 new chrome_browser_net::CacheStatsRenderViewHostObserver(render_view_host);
442 } 444 }
443 445
444 void ChromeContentBrowserClient::RenderProcessHostCreated( 446 void ChromeContentBrowserClient::RenderProcessHostCreated(
445 content::RenderProcessHost* host) { 447 content::RenderProcessHost* host) {
446 int id = host->GetID(); 448 int id = host->GetID();
447 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 449 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
448 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( 450 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter(
449 id, profile, profile->GetRequestContextForRenderProcess(id))); 451 id, profile, profile->GetRequestContextForRenderProcess(id)));
450 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); 452 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile));
451 #if defined(ENABLE_PRINTING) 453 #if defined(ENABLE_PRINTING)
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 io_thread_application_locale_ = locale; 1668 io_thread_application_locale_ = locale;
1667 } 1669 }
1668 1670
1669 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 1671 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
1670 const std::string& locale) { 1672 const std::string& locale) {
1671 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 1673 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1672 io_thread_application_locale_ = locale; 1674 io_thread_application_locale_ = locale;
1673 } 1675 }
1674 1676
1675 } // namespace chrome 1677 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/cache_stats.h » ('j') | chrome/browser/net/cache_stats.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698