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

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

Issue 1371863002: Android: Do not build files not needed on the platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/ui/BUILD.gn ('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 "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/content_settings/chrome_content_settings_client.h" 9 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" 22 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h"
23 #include "chrome/browser/prerender/prerender_tab_helper.h" 23 #include "chrome/browser/prerender/prerender_tab_helper.h"
24 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/sessions/session_tab_helper.h" 25 #include "chrome/browser/sessions/session_tab_helper.h"
26 #include "chrome/browser/ssl/security_state_model.h" 26 #include "chrome/browser/ssl/security_state_model.h"
27 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" 27 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
28 #include "chrome/browser/tracing/navigation_tracing.h" 28 #include "chrome/browser/tracing/navigation_tracing.h"
29 #include "chrome/browser/translate/chrome_translate_client.h" 29 #include "chrome/browser/translate/chrome_translate_client.h"
30 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 30 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
31 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 31 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
32 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
33 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 32 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
34 #include "chrome/browser/ui/navigation_correction_tab_observer.h" 33 #include "chrome/browser/ui/navigation_correction_tab_observer.h"
35 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 34 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
36 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" 35 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h"
37 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" 36 #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
38 #include "chrome/browser/ui/search/search_tab_helper.h" 37 #include "chrome/browser/ui/search/search_tab_helper.h"
39 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 38 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
40 #include "chrome/browser/ui/tab_dialogs.h" 39 #include "chrome/browser/ui/tab_dialogs.h"
41 #include "chrome/common/chrome_switches.h" 40 #include "chrome/common/chrome_switches.h"
42 #include "components/autofill/content/browser/content_autofill_driver_factory.h" 41 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
(...skipping 10 matching lines...) Expand all
53 #if defined(OS_ANDROID) 52 #if defined(OS_ANDROID)
54 #include "chrome/browser/android/voice_search_tab_helper.h" 53 #include "chrome/browser/android/voice_search_tab_helper.h"
55 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" 54 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h"
56 #include "chrome/browser/ui/android/context_menu_helper.h" 55 #include "chrome/browser/ui/android/context_menu_helper.h"
57 #include "chrome/browser/ui/android/window_android_helper.h" 56 #include "chrome/browser/ui/android/window_android_helper.h"
58 #else 57 #else
59 #include "chrome/browser/banners/app_banner_manager_desktop.h" 58 #include "chrome/browser/banners/app_banner_manager_desktop.h"
60 #include "chrome/browser/plugins/plugin_observer.h" 59 #include "chrome/browser/plugins/plugin_observer.h"
61 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 60 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
62 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" 61 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h"
62 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
63 #include "chrome/browser/ui/hung_plugin_tab_helper.h" 63 #include "chrome/browser/ui/hung_plugin_tab_helper.h"
64 #include "chrome/browser/ui/sad_tab_helper.h" 64 #include "chrome/browser/ui/sad_tab_helper.h"
65 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 65 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
66 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" 66 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
67 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" 67 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h"
68 #include "components/pdf/browser/pdf_web_contents_helper.h" 68 #include "components/pdf/browser/pdf_web_contents_helper.h"
69 #include "components/ui/zoom/zoom_controller.h" 69 #include "components/ui/zoom/zoom_controller.h"
70 #include "components/web_modal/web_contents_modal_dialog_manager.h" 70 #include "components/web_modal/web_contents_modal_dialog_manager.h"
71 #endif // defined(OS_ANDROID) 71 #endif // defined(OS_ANDROID)
72 72
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 #endif 136 #endif
137 137
138 // --- Common tab helpers --- 138 // --- Common tab helpers ---
139 139
140 autofill::ChromeAutofillClient::CreateForWebContents(web_contents); 140 autofill::ChromeAutofillClient::CreateForWebContents(web_contents);
141 autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate( 141 autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
142 web_contents, 142 web_contents,
143 autofill::ChromeAutofillClient::FromWebContents(web_contents), 143 autofill::ChromeAutofillClient::FromWebContents(web_contents),
144 g_browser_process->GetApplicationLocale(), 144 g_browser_process->GetApplicationLocale(),
145 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 145 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
146 BookmarkTabHelper::CreateForWebContents(web_contents);
147 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 146 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
148 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 147 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
149 ChromeContentSettingsClient::CreateForWebContents(web_contents); 148 ChromeContentSettingsClient::CreateForWebContents(web_contents);
150 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 149 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
151 web_contents, 150 web_contents,
152 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 151 autofill::ChromeAutofillClient::FromWebContents(web_contents));
153 ChromeTranslateClient::CreateForWebContents(web_contents); 152 ChromeTranslateClient::CreateForWebContents(web_contents);
154 CoreTabHelper::CreateForWebContents(web_contents); 153 CoreTabHelper::CreateForWebContents(web_contents);
155 ExternalProtocolObserver::CreateForWebContents(web_contents); 154 ExternalProtocolObserver::CreateForWebContents(web_contents);
156 favicon::CreateContentFaviconDriverForWebContents(web_contents); 155 favicon::CreateContentFaviconDriverForWebContents(web_contents);
(...skipping 21 matching lines...) Expand all
178 TabSpecificContentSettings::CreateForWebContents(web_contents); 177 TabSpecificContentSettings::CreateForWebContents(web_contents);
179 178
180 // --- Platform-specific tab helpers --- 179 // --- Platform-specific tab helpers ---
181 180
182 #if defined(OS_ANDROID) 181 #if defined(OS_ANDROID)
183 ContextMenuHelper::CreateForWebContents(web_contents); 182 ContextMenuHelper::CreateForWebContents(web_contents);
184 SingleTabModeTabHelper::CreateForWebContents(web_contents); 183 SingleTabModeTabHelper::CreateForWebContents(web_contents);
185 VoiceSearchTabHelper::CreateForWebContents(web_contents); 184 VoiceSearchTabHelper::CreateForWebContents(web_contents);
186 WindowAndroidHelper::CreateForWebContents(web_contents); 185 WindowAndroidHelper::CreateForWebContents(web_contents);
187 #else 186 #else
187 BookmarkTabHelper::CreateForWebContents(web_contents);
188 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( 188 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents(
189 web_contents); 189 web_contents);
190 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); 190 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents);
191 HungPluginTabHelper::CreateForWebContents(web_contents); 191 HungPluginTabHelper::CreateForWebContents(web_contents);
192 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( 192 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient(
193 web_contents, 193 web_contents,
194 scoped_ptr<pdf::PDFWebContentsHelperClient>( 194 scoped_ptr<pdf::PDFWebContentsHelperClient>(
195 new ChromePDFWebContentsHelperClient())); 195 new ChromePDFWebContentsHelperClient()));
196 PermissionBubbleManager::CreateForWebContents(web_contents); 196 PermissionBubbleManager::CreateForWebContents(web_contents);
197 PluginObserver::CreateForWebContents(web_contents); 197 PluginObserver::CreateForWebContents(web_contents);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 web_contents); 247 web_contents);
248 } 248 }
249 249
250 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 250 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
251 switches::kEnableNavigationTracing) && 251 switches::kEnableNavigationTracing) &&
252 base::CommandLine::ForCurrentProcess()->HasSwitch( 252 base::CommandLine::ForCurrentProcess()->HasSwitch(
253 switches::kTraceUploadURL)) { 253 switches::kTraceUploadURL)) {
254 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 254 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
255 } 255 }
256 } 256 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698