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

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

Issue 2285903002: Framework to ascribe all network data use to a source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 3 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/data_use_measurement/chrome_data_use_ascriber_service_f actory.h"
13 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h"
12 #include "chrome/browser/engagement/site_engagement_helper.h" 14 #include "chrome/browser/engagement/site_engagement_helper.h"
13 #include "chrome/browser/engagement/site_engagement_service.h" 15 #include "chrome/browser/engagement/site_engagement_service.h"
14 #include "chrome/browser/external_protocol/external_protocol_observer.h" 16 #include "chrome/browser/external_protocol/external_protocol_observer.h"
15 #include "chrome/browser/favicon/favicon_utils.h" 17 #include "chrome/browser/favicon/favicon_utils.h"
16 #include "chrome/browser/history/history_tab_helper.h" 18 #include "chrome/browser/history/history_tab_helper.h"
17 #include "chrome/browser/history/top_sites_factory.h" 19 #include "chrome/browser/history/top_sites_factory.h"
18 #include "chrome/browser/infobars/infobar_service.h" 20 #include "chrome/browser/infobars/infobar_service.h"
19 #include "chrome/browser/metrics/desktop_engagement/desktop_engagement_observer. h" 21 #include "chrome/browser/metrics/desktop_engagement/desktop_engagement_observer. h"
20 #include "chrome/browser/net/net_error_tab_helper.h" 22 #include "chrome/browser/net/net_error_tab_helper.h"
21 #include "chrome/browser/net/predictor_tab_helper.h" 23 #include "chrome/browser/net/predictor_tab_helper.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 g_browser_process->GetApplicationLocale(), 154 g_browser_process->GetApplicationLocale(),
153 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 155 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
154 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 156 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
155 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 157 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
156 ChromeContentSettingsClient::CreateForWebContents(web_contents); 158 ChromeContentSettingsClient::CreateForWebContents(web_contents);
157 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 159 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
158 web_contents, 160 web_contents,
159 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 161 autofill::ChromeAutofillClient::FromWebContents(web_contents));
160 ChromeTranslateClient::CreateForWebContents(web_contents); 162 ChromeTranslateClient::CreateForWebContents(web_contents);
161 CoreTabHelper::CreateForWebContents(web_contents); 163 CoreTabHelper::CreateForWebContents(web_contents);
164 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents(
165 web_contents,
166 data_use_measurement::ChromeDataUseAscriberServiceFactory::
167 GetForBrowserContext(web_contents->GetBrowserContext()));
162 ExternalProtocolObserver::CreateForWebContents(web_contents); 168 ExternalProtocolObserver::CreateForWebContents(web_contents);
163 favicon::CreateContentFaviconDriverForWebContents(web_contents); 169 favicon::CreateContentFaviconDriverForWebContents(web_contents);
164 FindTabHelper::CreateForWebContents(web_contents); 170 FindTabHelper::CreateForWebContents(web_contents);
165 history::WebContentsTopSitesObserver::CreateForWebContents( 171 history::WebContentsTopSitesObserver::CreateForWebContents(
166 web_contents, TopSitesFactory::GetForProfile( 172 web_contents, TopSitesFactory::GetForProfile(
167 Profile::FromBrowserContext( 173 Profile::FromBrowserContext(
168 web_contents->GetBrowserContext())).get()); 174 web_contents->GetBrowserContext())).get());
169 HistoryTabHelper::CreateForWebContents(web_contents); 175 HistoryTabHelper::CreateForWebContents(web_contents);
170 InfoBarService::CreateForWebContents(web_contents); 176 InfoBarService::CreateForWebContents(web_contents);
171 JavaScriptDialogTabHelper::CreateForWebContents(web_contents); 177 JavaScriptDialogTabHelper::CreateForWebContents(web_contents);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 269
264 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 270 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
265 web_contents->GetBrowserContext())) { 271 web_contents->GetBrowserContext())) {
266 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 272 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
267 web_contents); 273 web_contents);
268 } 274 }
269 275
270 if (tracing::NavigationTracingObserver::IsEnabled()) 276 if (tracing::NavigationTracingObserver::IsEnabled())
271 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 277 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
272 } 278 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698