| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 135 } |
| 132 | 136 |
| 133 BlockedContentTabHelper* blocked_content_tab_helper() { | 137 BlockedContentTabHelper* blocked_content_tab_helper() { |
| 134 return blocked_content_tab_helper_.get(); | 138 return blocked_content_tab_helper_.get(); |
| 135 } | 139 } |
| 136 | 140 |
| 137 BookmarkTabHelper* bookmark_tab_helper() { | 141 BookmarkTabHelper* bookmark_tab_helper() { |
| 138 return bookmark_tab_helper_.get(); | 142 return bookmark_tab_helper_.get(); |
| 139 } | 143 } |
| 140 | 144 |
| 145 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 146 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() { |
| 147 return captive_portal_tab_helper_.get(); |
| 148 } |
| 149 #endif |
| 150 |
| 141 ConstrainedWindowTabHelper* constrained_window_tab_helper() { | 151 ConstrainedWindowTabHelper* constrained_window_tab_helper() { |
| 142 return constrained_window_tab_helper_.get(); | 152 return constrained_window_tab_helper_.get(); |
| 143 } | 153 } |
| 144 | 154 |
| 145 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } | 155 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } |
| 146 | 156 |
| 147 ExtensionTabHelper* extension_tab_helper() { | 157 ExtensionTabHelper* extension_tab_helper() { |
| 148 return extension_tab_helper_.get(); | 158 return extension_tab_helper_.get(); |
| 149 } | 159 } |
| 150 | 160 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // Tab Helpers --------------------------------------------------------------- | 245 // Tab Helpers --------------------------------------------------------------- |
| 236 // (These provide API for callers and have a getter function listed in the | 246 // (These provide API for callers and have a getter function listed in the |
| 237 // "Tab Helpers" section in the member functions area, above.) | 247 // "Tab Helpers" section in the member functions area, above.) |
| 238 | 248 |
| 239 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 249 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
| 240 scoped_refptr<AutofillManager> autofill_manager_; | 250 scoped_refptr<AutofillManager> autofill_manager_; |
| 241 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 251 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
| 242 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 252 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
| 243 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 253 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
| 244 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; | 254 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; |
| 255 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 256 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_; |
| 257 #endif |
| 245 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; | 258 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; |
| 246 scoped_ptr<CoreTabHelper> core_tab_helper_; | 259 scoped_ptr<CoreTabHelper> core_tab_helper_; |
| 247 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; | 260 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; |
| 248 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 261 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
| 249 scoped_ptr<FindTabHelper> find_tab_helper_; | 262 scoped_ptr<FindTabHelper> find_tab_helper_; |
| 250 scoped_ptr<HistoryTabHelper> history_tab_helper_; | 263 scoped_ptr<HistoryTabHelper> history_tab_helper_; |
| 251 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; | 264 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; |
| 252 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; | 265 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; |
| 253 | 266 |
| 254 // PasswordManager and its delegate. The delegate must outlive the manager, | 267 // PasswordManager and its delegate. The delegate must outlive the manager, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 318 |
| 306 // The supporting objects need to outlive the WebContents dtor (as they may | 319 // The supporting objects need to outlive the WebContents dtor (as they may |
| 307 // be called upon during its execution). As a result, this must come last | 320 // be called upon during its execution). As a result, this must come last |
| 308 // in the list. | 321 // in the list. |
| 309 scoped_ptr<content::WebContents> web_contents_; | 322 scoped_ptr<content::WebContents> web_contents_; |
| 310 | 323 |
| 311 DISALLOW_COPY_AND_ASSIGN(TabContents); | 324 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 312 }; | 325 }; |
| 313 | 326 |
| 314 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 327 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |