| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_tab_contents.h" | 5 #include "chrome/browser/ui/browser_tab_contents.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/api/web_navigation/web_navigation_api.h" | 10 #include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 42 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
| 43 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 43 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 44 #include "chrome/browser/ui/zoom/zoom_controller.h" | 44 #include "chrome/browser/ui/zoom/zoom_controller.h" |
| 45 #include "chrome/common/chrome_switches.h" | 45 #include "chrome/common/chrome_switches.h" |
| 46 #include "components/autofill/browser/autofill_external_delegate.h" | 46 #include "components/autofill/browser/autofill_external_delegate.h" |
| 47 #include "components/autofill/browser/autofill_manager.h" | 47 #include "components/autofill/browser/autofill_manager.h" |
| 48 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 48 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
| 49 #include "content/public/browser/web_contents.h" | 49 #include "content/public/browser/web_contents.h" |
| 50 #include "extensions/browser/view_type_utils.h" | 50 #include "extensions/browser/view_type_utils.h" |
| 51 | 51 |
| 52 #if defined(ENABLE_AUTOMATION) | |
| 53 #include "chrome/browser/automation/automation_tab_helper.h" | |
| 54 #endif | |
| 55 | |
| 56 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 52 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 57 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 53 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
| 58 #endif | 54 #endif |
| 59 | 55 |
| 60 #if defined(ENABLE_MANAGED_USERS) | 56 #if defined(ENABLE_MANAGED_USERS) |
| 61 #include "chrome/browser/managed_mode/managed_mode_navigation_observer.h" | 57 #include "chrome/browser/managed_mode/managed_mode_navigation_observer.h" |
| 62 #include "chrome/browser/managed_mode/managed_user_service.h" | 58 #include "chrome/browser/managed_mode/managed_user_service.h" |
| 63 #endif | 59 #endif |
| 64 | 60 |
| 65 #if defined(ENABLE_PRINTING) | 61 #if defined(ENABLE_PRINTING) |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); | 152 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); |
| 157 SearchEngineTabHelper::CreateForWebContents(web_contents); | 153 SearchEngineTabHelper::CreateForWebContents(web_contents); |
| 158 SearchTabHelper::CreateForWebContents(web_contents); | 154 SearchTabHelper::CreateForWebContents(web_contents); |
| 159 SSLTabHelper::CreateForWebContents(web_contents); | 155 SSLTabHelper::CreateForWebContents(web_contents); |
| 160 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); | 156 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); |
| 161 TabSpecificContentSettings::CreateForWebContents(web_contents); | 157 TabSpecificContentSettings::CreateForWebContents(web_contents); |
| 162 ThumbnailTabHelper::CreateForWebContents(web_contents); | 158 ThumbnailTabHelper::CreateForWebContents(web_contents); |
| 163 TranslateTabHelper::CreateForWebContents(web_contents); | 159 TranslateTabHelper::CreateForWebContents(web_contents); |
| 164 ZoomController::CreateForWebContents(web_contents); | 160 ZoomController::CreateForWebContents(web_contents); |
| 165 | 161 |
| 166 #if defined(ENABLE_AUTOMATION) | |
| 167 AutomationTabHelper::CreateForWebContents(web_contents); | |
| 168 #endif | |
| 169 | |
| 170 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 162 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 171 captive_portal::CaptivePortalTabHelper::CreateForWebContents(web_contents); | 163 captive_portal::CaptivePortalTabHelper::CreateForWebContents(web_contents); |
| 172 #endif | 164 #endif |
| 173 | 165 |
| 174 #if defined(ENABLE_MANAGED_USERS) | 166 #if defined(ENABLE_MANAGED_USERS) |
| 175 if (ManagedUserService::ProfileIsManaged(profile)) | 167 if (ManagedUserService::ProfileIsManaged(profile)) |
| 176 ManagedModeNavigationObserver::CreateForWebContents(web_contents); | 168 ManagedModeNavigationObserver::CreateForWebContents(web_contents); |
| 177 #endif | 169 #endif |
| 178 | 170 |
| 179 #if defined(ENABLE_PRINTING) | 171 #if defined(ENABLE_PRINTING) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 192 std::string(), | 184 std::string(), |
| 193 NULL)) { | 185 NULL)) { |
| 194 OneClickSigninHelper::CreateForWebContents(web_contents); | 186 OneClickSigninHelper::CreateForWebContents(web_contents); |
| 195 } | 187 } |
| 196 #endif | 188 #endif |
| 197 | 189 |
| 198 #if defined(OS_WIN) | 190 #if defined(OS_WIN) |
| 199 MetroPinTabHelper::CreateForWebContents(web_contents); | 191 MetroPinTabHelper::CreateForWebContents(web_contents); |
| 200 #endif | 192 #endif |
| 201 } | 193 } |
| OLD | NEW |