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

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

Issue 2256383002: Add PreviewsInfoBarTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newLoFiInfoBarWithoutPercent
Patch Set: 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
« no previous file with comments | « chrome/browser/previews/previews_infobar_tab_helper.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/desktop_engagement_observer. h" 19 #include "chrome/browser/metrics/desktop_engagement/desktop_engagement_observer. h"
20 #include "chrome/browser/net/net_error_tab_helper.h" 20 #include "chrome/browser/net/net_error_tab_helper.h"
21 #include "chrome/browser/net/predictor_tab_helper.h" 21 #include "chrome/browser/net/predictor_tab_helper.h"
22 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h" 22 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h"
23 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 23 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
24 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 24 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
25 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" 25 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h"
26 #include "chrome/browser/prerender/prerender_tab_helper.h" 26 #include "chrome/browser/prerender/prerender_tab_helper.h"
27 #include "chrome/browser/previews/previews_infobar_tab_helper.h"
27 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/sessions/session_tab_helper.h" 29 #include "chrome/browser/sessions/session_tab_helper.h"
29 #include "chrome/browser/ssl/chrome_security_state_model_client.h" 30 #include "chrome/browser/ssl/chrome_security_state_model_client.h"
30 #include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h" 31 #include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h"
31 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" 32 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
32 #include "chrome/browser/tracing/navigation_tracing.h" 33 #include "chrome/browser/tracing/navigation_tracing.h"
33 #include "chrome/browser/translate/chrome_translate_client.h" 34 #include "chrome/browser/translate/chrome_translate_client.h"
34 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 35 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
35 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 36 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
36 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 37 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); 179 ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
179 if (SiteEngagementService::IsEnabled()) 180 if (SiteEngagementService::IsEnabled())
180 SiteEngagementService::Helper::CreateForWebContents(web_contents); 181 SiteEngagementService::Helper::CreateForWebContents(web_contents);
181 std::unique_ptr<ChromeSubresourceFilterClient> subresource_filter_client( 182 std::unique_ptr<ChromeSubresourceFilterClient> subresource_filter_client(
182 new ChromeSubresourceFilterClient(web_contents)); 183 new ChromeSubresourceFilterClient(web_contents));
183 subresource_filter::ContentSubresourceFilterDriverFactory:: 184 subresource_filter::ContentSubresourceFilterDriverFactory::
184 CreateForWebContents(web_contents, std::move(subresource_filter_client)); 185 CreateForWebContents(web_contents, std::move(subresource_filter_client));
185 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 186 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
186 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 187 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
187 TabSpecificContentSettings::CreateForWebContents(web_contents); 188 TabSpecificContentSettings::CreateForWebContents(web_contents);
189 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents);
Avi (use Gerrit) 2016/08/30 18:38:16 alphabetical, plz
megjablon 2016/08/30 18:43:58 Done.
188 190
189 // --- Platform-specific tab helpers --- 191 // --- Platform-specific tab helpers ---
190 192
191 #if BUILDFLAG(ANDROID_JAVA_UI) 193 #if BUILDFLAG(ANDROID_JAVA_UI)
192 banners::AppBannerManagerAndroid::CreateForWebContents(web_contents); 194 banners::AppBannerManagerAndroid::CreateForWebContents(web_contents);
193 BookmarkLastVisitUpdater::CreateForWebContentsWithBookmarkModel( 195 BookmarkLastVisitUpdater::CreateForWebContentsWithBookmarkModel(
194 web_contents, BookmarkModelFactory::GetForBrowserContext( 196 web_contents, BookmarkModelFactory::GetForBrowserContext(
195 web_contents->GetBrowserContext())); 197 web_contents->GetBrowserContext()));
196 ContextMenuHelper::CreateForWebContents(web_contents); 198 ContextMenuHelper::CreateForWebContents(web_contents);
197 DataUseTabHelper::CreateForWebContents(web_contents); 199 DataUseTabHelper::CreateForWebContents(web_contents);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 265
264 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 266 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
265 web_contents->GetBrowserContext())) { 267 web_contents->GetBrowserContext())) {
266 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 268 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
267 web_contents); 269 web_contents);
268 } 270 }
269 271
270 if (tracing::NavigationTracingObserver::IsEnabled()) 272 if (tracing::NavigationTracingObserver::IsEnabled())
271 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 273 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
272 } 274 }
OLDNEW
« no previous file with comments | « chrome/browser/previews/previews_infobar_tab_helper.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698