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

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

Issue 2349473002: Implement native functions to query custom search engines for Android (Closed)
Patch Set: run "git cl format" to format the commit 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/search_engines/template_url_service_android.cc ('k') | no next file » | 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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 28 matching lines...) Expand all
39 #include "chrome/browser/translate/chrome_translate_client.h" 39 #include "chrome/browser/translate/chrome_translate_client.h"
40 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 40 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
41 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 41 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
42 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 42 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
43 #include "chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h" 43 #include "chrome/browser/ui/javascript_dialogs/javascript_dialog_tab_helper.h"
44 #include "chrome/browser/ui/navigation_correction_tab_observer.h" 44 #include "chrome/browser/ui/navigation_correction_tab_observer.h"
45 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 45 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
46 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" 46 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h"
47 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" 47 #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
48 #include "chrome/browser/ui/search/search_tab_helper.h" 48 #include "chrome/browser/ui/search/search_tab_helper.h"
49 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
49 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 50 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
50 #include "chrome/browser/ui/tab_dialogs.h" 51 #include "chrome/browser/ui/tab_dialogs.h"
51 #include "chrome/common/chrome_switches.h" 52 #include "chrome/common/chrome_switches.h"
52 #include "chrome/common/features.h" 53 #include "chrome/common/features.h"
53 #include "components/autofill/content/browser/content_autofill_driver_factory.h" 54 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
54 #include "components/autofill/core/browser/autofill_manager.h" 55 #include "components/autofill/core/browser/autofill_manager.h"
55 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h" 56 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h"
56 #include "components/dom_distiller/core/dom_distiller_switches.h" 57 #include "components/dom_distiller/core/dom_distiller_switches.h"
57 #include "components/history/content/browser/web_contents_top_sites_observer.h" 58 #include "components/history/content/browser/web_contents_top_sites_observer.h"
58 #include "components/history/core/browser/top_sites.h" 59 #include "components/history/core/browser/top_sites.h"
(...skipping 15 matching lines...) Expand all
74 #include "chrome/browser/ui/android/view_android_helper.h" 75 #include "chrome/browser/ui/android/view_android_helper.h"
75 #else 76 #else
76 #include "chrome/browser/banners/app_banner_manager_desktop.h" 77 #include "chrome/browser/banners/app_banner_manager_desktop.h"
77 #include "chrome/browser/permissions/permission_request_manager.h" 78 #include "chrome/browser/permissions/permission_request_manager.h"
78 #include "chrome/browser/plugins/plugin_observer.h" 79 #include "chrome/browser/plugins/plugin_observer.h"
79 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 80 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
80 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" 81 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h"
81 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 82 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
82 #include "chrome/browser/ui/hung_plugin_tab_helper.h" 83 #include "chrome/browser/ui/hung_plugin_tab_helper.h"
83 #include "chrome/browser/ui/sad_tab_helper.h" 84 #include "chrome/browser/ui/sad_tab_helper.h"
84 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
85 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" 85 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
86 #include "components/pdf/browser/pdf_web_contents_helper.h" 86 #include "components/pdf/browser/pdf_web_contents_helper.h"
87 #include "components/web_modal/web_contents_modal_dialog_manager.h" 87 #include "components/web_modal/web_contents_modal_dialog_manager.h"
88 #include "components/zoom/zoom_controller.h" 88 #include "components/zoom/zoom_controller.h"
89 #endif // BUILDFLAG(ANDROID_JAVA_UI) 89 #endif // BUILDFLAG(ANDROID_JAVA_UI)
90 90
91 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 91 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
92 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" 92 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
93 #endif 93 #endif
94 94
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 InfoBarService::CreateForWebContents(web_contents); 180 InfoBarService::CreateForWebContents(web_contents);
181 JavaScriptDialogTabHelper::CreateForWebContents(web_contents); 181 JavaScriptDialogTabHelper::CreateForWebContents(web_contents);
182 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 182 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
183 NavigationMetricsRecorder::CreateForWebContents(web_contents); 183 NavigationMetricsRecorder::CreateForWebContents(web_contents);
184 chrome::InitializePageLoadMetricsForWebContents(web_contents); 184 chrome::InitializePageLoadMetricsForWebContents(web_contents);
185 PopupBlockerTabHelper::CreateForWebContents(web_contents); 185 PopupBlockerTabHelper::CreateForWebContents(web_contents);
186 PrefsTabHelper::CreateForWebContents(web_contents); 186 PrefsTabHelper::CreateForWebContents(web_contents);
187 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); 187 prerender::PrerenderTabHelper::CreateForWebContents(web_contents);
188 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents); 188 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents);
189 SearchTabHelper::CreateForWebContents(web_contents); 189 SearchTabHelper::CreateForWebContents(web_contents);
190 SearchEngineTabHelper::CreateForWebContents(web_contents);
190 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); 191 ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
191 if (SiteEngagementService::IsEnabled()) 192 if (SiteEngagementService::IsEnabled())
192 SiteEngagementService::Helper::CreateForWebContents(web_contents); 193 SiteEngagementService::Helper::CreateForWebContents(web_contents);
193 std::unique_ptr<ChromeSubresourceFilterClient> subresource_filter_client( 194 std::unique_ptr<ChromeSubresourceFilterClient> subresource_filter_client(
194 new ChromeSubresourceFilterClient(web_contents)); 195 new ChromeSubresourceFilterClient(web_contents));
195 subresource_filter::ContentSubresourceFilterDriverFactory:: 196 subresource_filter::ContentSubresourceFilterDriverFactory::
196 CreateForWebContents(web_contents, std::move(subresource_filter_client)); 197 CreateForWebContents(web_contents, std::move(subresource_filter_client));
197 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 198 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
198 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 199 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
199 TabSpecificContentSettings::CreateForWebContents(web_contents); 200 TabSpecificContentSettings::CreateForWebContents(web_contents);
(...skipping 21 matching lines...) Expand all
221 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); 222 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents);
222 HungPluginTabHelper::CreateForWebContents(web_contents); 223 HungPluginTabHelper::CreateForWebContents(web_contents);
223 ManagePasswordsUIController::CreateForWebContents(web_contents); 224 ManagePasswordsUIController::CreateForWebContents(web_contents);
224 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( 225 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient(
225 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>( 226 web_contents, std::unique_ptr<pdf::PDFWebContentsHelperClient>(
226 new ChromePDFWebContentsHelperClient())); 227 new ChromePDFWebContentsHelperClient()));
227 PermissionRequestManager::CreateForWebContents(web_contents); 228 PermissionRequestManager::CreateForWebContents(web_contents);
228 PluginObserver::CreateForWebContents(web_contents); 229 PluginObserver::CreateForWebContents(web_contents);
229 SadTabHelper::CreateForWebContents(web_contents); 230 SadTabHelper::CreateForWebContents(web_contents);
230 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); 231 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents);
231 SearchEngineTabHelper::CreateForWebContents(web_contents);
232 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); 232 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents);
233 TabDialogs::CreateForWebContents(web_contents); 233 TabDialogs::CreateForWebContents(web_contents);
234 ThumbnailTabHelper::CreateForWebContents(web_contents); 234 ThumbnailTabHelper::CreateForWebContents(web_contents);
235 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); 235 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents);
236 236
237 if (banners::AppBannerManagerDesktop::IsEnabled()) 237 if (banners::AppBannerManagerDesktop::IsEnabled())
238 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); 238 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents);
239 #endif 239 #endif
240 240
241 #if defined(OS_WIN) || defined(OS_MACOSX) || \ 241 #if defined(OS_WIN) || defined(OS_MACOSX) || \
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 275 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
276 web_contents->GetBrowserContext())) { 276 web_contents->GetBrowserContext())) {
277 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 277 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
278 web_contents); 278 web_contents);
279 } 279 }
280 280
281 if (tracing::NavigationTracingObserver::IsEnabled()) 281 if (tracing::NavigationTracingObserver::IsEnabled())
282 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 282 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
283 } 283 }
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698