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

Side by Side Diff: chrome/browser/ui/tab_helpers.cc

Issue 2101743002: Observe input metrics from web content area. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update service logic for visibility stuff; add debug logging Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/tab_helpers.h" 5 #include "chrome/browser/ui/tab_helpers.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/content_settings/chrome_content_settings_client.h" 10 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
11 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 11 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
12 #include "chrome/browser/engagement/site_engagement_helper.h" 12 #include "chrome/browser/engagement/site_engagement_helper.h"
13 #include "chrome/browser/engagement/site_engagement_service.h" 13 #include "chrome/browser/engagement/site_engagement_service.h"
14 #include "chrome/browser/external_protocol/external_protocol_observer.h" 14 #include "chrome/browser/external_protocol/external_protocol_observer.h"
15 #include "chrome/browser/favicon/favicon_utils.h" 15 #include "chrome/browser/favicon/favicon_utils.h"
16 #include "chrome/browser/history/history_tab_helper.h" 16 #include "chrome/browser/history/history_tab_helper.h"
17 #include "chrome/browser/history/top_sites_factory.h" 17 #include "chrome/browser/history/top_sites_factory.h"
18 #include "chrome/browser/infobars/infobar_service.h" 18 #include "chrome/browser/infobars/infobar_service.h"
19 #include "chrome/browser/metrics/desktop_engagement_observer.h"
19 #include "chrome/browser/net/net_error_tab_helper.h" 20 #include "chrome/browser/net/net_error_tab_helper.h"
20 #include "chrome/browser/net/predictor_tab_helper.h" 21 #include "chrome/browser/net/predictor_tab_helper.h"
21 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h" 22 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h"
22 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 23 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
23 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 24 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
24 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" 25 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h"
25 #include "chrome/browser/prerender/prerender_tab_helper.h" 26 #include "chrome/browser/prerender/prerender_tab_helper.h"
26 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
27 #include "chrome/browser/sessions/session_tab_helper.h" 28 #include "chrome/browser/sessions/session_tab_helper.h"
28 #include "chrome/browser/ssl/chrome_security_state_model_client.h" 29 #include "chrome/browser/ssl/chrome_security_state_model_client.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 SearchTabHelper::CreateForWebContents(web_contents); 174 SearchTabHelper::CreateForWebContents(web_contents);
174 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); 175 ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
175 if (SiteEngagementService::IsEnabled()) 176 if (SiteEngagementService::IsEnabled())
176 SiteEngagementService::Helper::CreateForWebContents(web_contents); 177 SiteEngagementService::Helper::CreateForWebContents(web_contents);
177 subresource_filter::ContentSubresourceFilterDriverFactory:: 178 subresource_filter::ContentSubresourceFilterDriverFactory::
178 CreateForWebContents(web_contents); 179 CreateForWebContents(web_contents);
179 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 180 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
180 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 181 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
181 TabSpecificContentSettings::CreateForWebContents(web_contents); 182 TabSpecificContentSettings::CreateForWebContents(web_contents);
182 183
184 DesktopEngagementObserver::CreateForWebContents(web_contents);
185
183 // --- Platform-specific tab helpers --- 186 // --- Platform-specific tab helpers ---
184 187
185 #if BUILDFLAG(ANDROID_JAVA_UI) 188 #if BUILDFLAG(ANDROID_JAVA_UI)
186 ContextMenuHelper::CreateForWebContents(web_contents); 189 ContextMenuHelper::CreateForWebContents(web_contents);
187 DataUseTabHelper::CreateForWebContents(web_contents); 190 DataUseTabHelper::CreateForWebContents(web_contents);
188 191
189 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents); 192 offline_pages::OfflinePageTabHelper::CreateForWebContents(web_contents);
190 if (offline_pages::IsOffliningRecentPagesEnabled()) 193 if (offline_pages::IsOffliningRecentPagesEnabled())
191 offline_pages::RecentTabHelper::CreateForWebContents(web_contents); 194 offline_pages::RecentTabHelper::CreateForWebContents(web_contents);
192 195
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 258
256 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 259 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
257 web_contents->GetBrowserContext())) { 260 web_contents->GetBrowserContext())) {
258 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 261 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
259 web_contents); 262 web_contents);
260 } 263 }
261 264
262 if (tracing::NavigationTracingObserver::IsEnabled()) 265 if (tracing::NavigationTracingObserver::IsEnabled())
263 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 266 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
264 } 267 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698