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 24 matching lines...) Expand all Loading... |
35 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 35 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
36 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 36 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
37 #include "chrome/browser/ui/hung_plugin_tab_helper.h" | 37 #include "chrome/browser/ui/hung_plugin_tab_helper.h" |
38 #include "chrome/browser/ui/pdf/pdf_tab_helper.h" | 38 #include "chrome/browser/ui/pdf/pdf_tab_helper.h" |
39 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 39 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
40 #include "chrome/browser/ui/sad_tab_helper.h" | 40 #include "chrome/browser/ui/sad_tab_helper.h" |
41 #include "chrome/browser/ui/search/search_tab_helper.h" | 41 #include "chrome/browser/ui/search/search_tab_helper.h" |
42 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" | 42 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
43 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" | 43 #include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
44 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 44 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
45 #include "chrome/browser/ui/web_contents_modal_dialog_manager.h" | |
46 #include "chrome/browser/ui/zoom/zoom_controller.h" | 45 #include "chrome/browser/ui/zoom/zoom_controller.h" |
47 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
48 #include "components/autofill/browser/autofill_external_delegate.h" | 47 #include "components/autofill/browser/autofill_external_delegate.h" |
49 #include "components/autofill/browser/autofill_manager.h" | 48 #include "components/autofill/browser/autofill_manager.h" |
| 49 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
50 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" |
51 #include "extensions/browser/view_type_utils.h" | 51 #include "extensions/browser/view_type_utils.h" |
52 | 52 |
53 #if defined(ENABLE_AUTOMATION) | 53 #if defined(ENABLE_AUTOMATION) |
54 #include "chrome/browser/automation/automation_tab_helper.h" | 54 #include "chrome/browser/automation/automation_tab_helper.h" |
55 #endif | 55 #endif |
56 | 56 |
57 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 57 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
58 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 58 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
59 #endif | 59 #endif |
(...skipping 13 matching lines...) Expand all Loading... |
73 #endif | 73 #endif |
74 | 74 |
75 #if defined(OS_WIN) | 75 #if defined(OS_WIN) |
76 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" | 76 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" |
77 #endif | 77 #endif |
78 | 78 |
79 using autofill::AutofillExternalDelegate; | 79 using autofill::AutofillExternalDelegate; |
80 using autofill::AutofillManager; | 80 using autofill::AutofillManager; |
81 using autofill::TabAutofillManagerDelegate; | 81 using autofill::TabAutofillManagerDelegate; |
82 using content::WebContents; | 82 using content::WebContents; |
| 83 using web_modal::WebContentsModalDialogManager; |
83 | 84 |
84 namespace { | 85 namespace { |
85 | 86 |
86 const char kTabContentsAttachedTabHelpersUserDataKey[] = | 87 const char kTabContentsAttachedTabHelpersUserDataKey[] = |
87 "TabContentsAttachedTabHelpers"; | 88 "TabContentsAttachedTabHelpers"; |
88 | 89 |
89 } // namespace | 90 } // namespace |
90 | 91 |
91 // static | 92 // static |
92 void BrowserTabContents::AttachTabHelpers(WebContents* web_contents) { | 93 void BrowserTabContents::AttachTabHelpers(WebContents* web_contents) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 std::string(), | 195 std::string(), |
195 NULL)) { | 196 NULL)) { |
196 OneClickSigninHelper::CreateForWebContents(web_contents); | 197 OneClickSigninHelper::CreateForWebContents(web_contents); |
197 } | 198 } |
198 #endif | 199 #endif |
199 | 200 |
200 #if defined(OS_WIN) | 201 #if defined(OS_WIN) |
201 MetroPinTabHelper::CreateForWebContents(web_contents); | 202 MetroPinTabHelper::CreateForWebContents(web_contents); |
202 #endif | 203 #endif |
203 } | 204 } |
OLD | NEW |