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 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 class ZoomController; | 48 class ZoomController; |
49 | 49 |
50 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 50 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
51 class OneClickSigninHelper; | 51 class OneClickSigninHelper; |
52 #endif | 52 #endif |
53 | 53 |
54 namespace browser_sync { | 54 namespace browser_sync { |
55 class SyncedTabDelegate; | 55 class SyncedTabDelegate; |
56 } | 56 } |
57 | 57 |
| 58 namespace captive_portal { |
| 59 class CaptivePortalTabHelper; |
| 60 } |
| 61 |
58 namespace extensions { | 62 namespace extensions { |
59 class WebNavigationTabObserver; | 63 class WebNavigationTabObserver; |
60 } | 64 } |
61 | 65 |
62 namespace prerender { | 66 namespace prerender { |
63 class PrerenderTabHelper; | 67 class PrerenderTabHelper; |
64 } | 68 } |
65 | 69 |
66 namespace printing { | 70 namespace printing { |
67 class PrintViewManager; | 71 class PrintViewManager; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 } | 139 } |
136 | 140 |
137 BlockedContentTabHelper* blocked_content_tab_helper() { | 141 BlockedContentTabHelper* blocked_content_tab_helper() { |
138 return blocked_content_tab_helper_.get(); | 142 return blocked_content_tab_helper_.get(); |
139 } | 143 } |
140 | 144 |
141 BookmarkTabHelper* bookmark_tab_helper() { | 145 BookmarkTabHelper* bookmark_tab_helper() { |
142 return bookmark_tab_helper_.get(); | 146 return bookmark_tab_helper_.get(); |
143 } | 147 } |
144 | 148 |
| 149 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 150 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() { |
| 151 return captive_portal_tab_helper_.get(); |
| 152 } |
| 153 #endif |
| 154 |
145 ConstrainedWindowTabHelper* constrained_window_tab_helper() { | 155 ConstrainedWindowTabHelper* constrained_window_tab_helper() { |
146 return constrained_window_tab_helper_.get(); | 156 return constrained_window_tab_helper_.get(); |
147 } | 157 } |
148 | 158 |
149 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } | 159 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } |
150 | 160 |
151 ExtensionTabHelper* extension_tab_helper() { | 161 ExtensionTabHelper* extension_tab_helper() { |
152 return extension_tab_helper_.get(); | 162 return extension_tab_helper_.get(); |
153 } | 163 } |
154 | 164 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Tab Helpers --------------------------------------------------------------- | 249 // Tab Helpers --------------------------------------------------------------- |
240 // (These provide API for callers and have a getter function listed in the | 250 // (These provide API for callers and have a getter function listed in the |
241 // "Tab Helpers" section in the member functions area, above.) | 251 // "Tab Helpers" section in the member functions area, above.) |
242 | 252 |
243 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 253 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
244 scoped_refptr<AutofillManager> autofill_manager_; | 254 scoped_refptr<AutofillManager> autofill_manager_; |
245 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 255 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
246 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 256 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
247 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 257 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
248 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; | 258 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; |
| 259 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 260 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_; |
| 261 #endif |
249 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; | 262 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; |
250 scoped_ptr<CoreTabHelper> core_tab_helper_; | 263 scoped_ptr<CoreTabHelper> core_tab_helper_; |
251 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; | 264 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; |
252 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 265 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
253 scoped_ptr<FindTabHelper> find_tab_helper_; | 266 scoped_ptr<FindTabHelper> find_tab_helper_; |
254 scoped_ptr<HistoryTabHelper> history_tab_helper_; | 267 scoped_ptr<HistoryTabHelper> history_tab_helper_; |
255 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; | 268 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; |
256 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; | 269 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; |
257 | 270 |
258 // PasswordManager and its delegate. The delegate must outlive the manager, | 271 // PasswordManager and its delegate. The delegate must outlive the manager, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 322 |
310 // The supporting objects need to outlive the WebContents dtor (as they may | 323 // The supporting objects need to outlive the WebContents dtor (as they may |
311 // be called upon during its execution). As a result, this must come last | 324 // be called upon during its execution). As a result, this must come last |
312 // in the list. | 325 // in the list. |
313 scoped_ptr<content::WebContents> web_contents_; | 326 scoped_ptr<content::WebContents> web_contents_; |
314 | 327 |
315 DISALLOW_COPY_AND_ASSIGN(TabContents); | 328 DISALLOW_COPY_AND_ASSIGN(TabContents); |
316 }; | 329 }; |
317 | 330 |
318 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 331 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |