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

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

Issue 349713002: Android: Remove events extensions API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
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/tab_specific_content_settings.h" 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
10 #include "chrome/browser/extensions/tab_helper.h"
11 #include "chrome/browser/favicon/favicon_tab_helper.h" 10 #include "chrome/browser/favicon/favicon_tab_helper.h"
12 #include "chrome/browser/history/history_tab_helper.h" 11 #include "chrome/browser/history/history_tab_helper.h"
13 #include "chrome/browser/infobars/infobar_service.h" 12 #include "chrome/browser/infobars/infobar_service.h"
14 #include "chrome/browser/net/net_error_tab_helper.h" 13 #include "chrome/browser/net/net_error_tab_helper.h"
15 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 14 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
16 #include "chrome/browser/prerender/prerender_tab_helper.h" 15 #include "chrome/browser/prerender/prerender_tab_helper.h"
17 #include "chrome/browser/sessions/session_tab_helper.h" 16 #include "chrome/browser/sessions/session_tab_helper.h"
18 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" 17 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
19 #include "chrome/browser/translate/chrome_translate_client.h" 18 #include "chrome/browser/translate/chrome_translate_client.h"
20 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 19 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #endif // defined(OS_ANDROID) 55 #endif // defined(OS_ANDROID)
57 56
58 #if defined(OS_WIN) 57 #if defined(OS_WIN)
59 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" 58 #include "chrome/browser/ui/metro_pin_tab_helper_win.h"
60 #endif 59 #endif
61 60
62 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 61 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
63 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" 62 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
64 #endif 63 #endif
65 64
65 #if defined(ENABLE_EXTENSIONS)
66 #include "chrome/browser/extensions/tab_helper.h"
67 #endif
68
66 #if defined(ENABLE_MANAGED_USERS) 69 #if defined(ENABLE_MANAGED_USERS)
67 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" 70 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h"
68 #endif 71 #endif
69 72
70 #if defined(ENABLE_PRINTING) 73 #if defined(ENABLE_PRINTING)
71 #if defined(ENABLE_FULL_PRINTING) 74 #if defined(ENABLE_FULL_PRINTING)
72 #include "chrome/browser/printing/print_preview_message_handler.h" 75 #include "chrome/browser/printing/print_preview_message_handler.h"
73 #include "chrome/browser/printing/print_view_manager.h" 76 #include "chrome/browser/printing/print_view_manager.h"
74 #else 77 #else
75 #include "chrome/browser/printing/print_view_manager_basic.h" 78 #include "chrome/browser/printing/print_view_manager_basic.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 web_contents, 120 web_contents,
118 autofill::ChromeAutofillClient::FromWebContents(web_contents), 121 autofill::ChromeAutofillClient::FromWebContents(web_contents),
119 g_browser_process->GetApplicationLocale(), 122 g_browser_process->GetApplicationLocale(),
120 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 123 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
121 BookmarkTabHelper::CreateForWebContents(web_contents); 124 BookmarkTabHelper::CreateForWebContents(web_contents);
122 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 125 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
123 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 126 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
124 web_contents, 127 web_contents,
125 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 128 autofill::ChromeAutofillClient::FromWebContents(web_contents));
126 CoreTabHelper::CreateForWebContents(web_contents); 129 CoreTabHelper::CreateForWebContents(web_contents);
127 extensions::TabHelper::CreateForWebContents(web_contents);
128 FaviconTabHelper::CreateForWebContents(web_contents); 130 FaviconTabHelper::CreateForWebContents(web_contents);
129 FindTabHelper::CreateForWebContents(web_contents); 131 FindTabHelper::CreateForWebContents(web_contents);
130 HistoryTabHelper::CreateForWebContents(web_contents); 132 HistoryTabHelper::CreateForWebContents(web_contents);
131 InfoBarService::CreateForWebContents(web_contents); 133 InfoBarService::CreateForWebContents(web_contents);
132 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 134 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
133 NavigationMetricsRecorder::CreateForWebContents(web_contents); 135 NavigationMetricsRecorder::CreateForWebContents(web_contents);
134 PopupBlockerTabHelper::CreateForWebContents(web_contents); 136 PopupBlockerTabHelper::CreateForWebContents(web_contents);
135 PrefsTabHelper::CreateForWebContents(web_contents); 137 PrefsTabHelper::CreateForWebContents(web_contents);
136 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( 138 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager(
137 web_contents, 139 web_contents,
(...skipping 30 matching lines...) Expand all
168 #if defined(OS_WIN) 170 #if defined(OS_WIN)
169 MetroPinTabHelper::CreateForWebContents(web_contents); 171 MetroPinTabHelper::CreateForWebContents(web_contents);
170 #endif 172 #endif
171 173
172 // --- Feature tab helpers behind flags --- 174 // --- Feature tab helpers behind flags ---
173 175
174 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 176 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
175 CaptivePortalTabHelper::CreateForWebContents(web_contents); 177 CaptivePortalTabHelper::CreateForWebContents(web_contents);
176 #endif 178 #endif
177 179
180 #if defined(ENABLE_EXTENSIONS)
181 extensions::TabHelper::CreateForWebContents(web_contents);
182 #endif
183
178 #if defined(ENABLE_MANAGED_USERS) 184 #if defined(ENABLE_MANAGED_USERS)
179 SupervisedUserNavigationObserver::CreateForWebContents(web_contents); 185 SupervisedUserNavigationObserver::CreateForWebContents(web_contents);
180 #endif 186 #endif
181 187
182 #if defined(ENABLE_PRINTING) && !defined(OS_ANDROID) 188 #if defined(ENABLE_PRINTING) && !defined(OS_ANDROID)
183 #if defined(ENABLE_FULL_PRINTING) 189 #if defined(ENABLE_FULL_PRINTING)
184 printing::PrintViewManager::CreateForWebContents(web_contents); 190 printing::PrintViewManager::CreateForWebContents(web_contents);
185 printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents); 191 printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents);
186 #else 192 #else
187 printing::PrintViewManagerBasic::CreateForWebContents(web_contents); 193 printing::PrintViewManagerBasic::CreateForWebContents(web_contents);
(...skipping 15 matching lines...) Expand all
203 if (OneClickSigninHelper::CanOffer(web_contents, 209 if (OneClickSigninHelper::CanOffer(web_contents,
204 OneClickSigninHelper::CAN_OFFER_FOR_ALL, 210 OneClickSigninHelper::CAN_OFFER_FOR_ALL,
205 std::string(), 211 std::string(),
206 NULL)) { 212 NULL)) {
207 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( 213 OneClickSigninHelper::CreateForWebContentsWithPasswordManager(
208 web_contents, 214 web_contents,
209 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 215 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
210 } 216 }
211 #endif 217 #endif
212 } 218 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc ('k') | chrome/browser/web_applications/web_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698