OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "chrome/browser/prefs/pref_change_registrar.h" | 15 #include "chrome/browser/prefs/pref_change_registrar.h" |
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" |
17 #include "content/browser/tab_contents/tab_contents.h" | 17 #include "content/browser/tab_contents/tab_contents.h" |
18 #include "content/browser/tab_contents/tab_contents_observer.h" | 18 #include "content/browser/tab_contents/tab_contents_observer.h" |
19 #include "content/common/notification_registrar.h" | 19 #include "content/common/notification_registrar.h" |
20 | 20 |
21 class AutocompleteHistoryManager; | 21 class AutocompleteHistoryManager; |
22 class AutofillManager; | 22 class AutofillManager; |
23 class AutomationTabHelper; | 23 class AutomationTabHelper; |
24 class BlockedContentTabHelper; | 24 class BlockedContentTabHelper; |
25 class BookmarkTabHelper; | 25 class BookmarkTabHelper; |
| 26 class ConstrainedWindowTabHelper; |
26 class DownloadRequestLimiterObserver; | 27 class DownloadRequestLimiterObserver; |
27 class Extension; | 28 class Extension; |
28 class ExtensionTabHelper; | 29 class ExtensionTabHelper; |
29 class ExtensionWebNavigationTabObserver; | 30 class ExtensionWebNavigationTabObserver; |
30 class ExternalProtocolObserver; | 31 class ExternalProtocolObserver; |
31 class FaviconTabHelper; | 32 class FaviconTabHelper; |
32 class FileSelectObserver; | 33 class FileSelectObserver; |
33 class FindTabHelper; | 34 class FindTabHelper; |
34 class FirewallTraversalObserver; | 35 class FirewallTraversalObserver; |
35 class InfoBarTabHelper; | 36 class InfoBarTabHelper; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 152 } |
152 | 153 |
153 BlockedContentTabHelper* blocked_content_tab_helper() { | 154 BlockedContentTabHelper* blocked_content_tab_helper() { |
154 return blocked_content_tab_helper_.get(); | 155 return blocked_content_tab_helper_.get(); |
155 } | 156 } |
156 | 157 |
157 BookmarkTabHelper* bookmark_tab_helper() { | 158 BookmarkTabHelper* bookmark_tab_helper() { |
158 return bookmark_tab_helper_.get(); | 159 return bookmark_tab_helper_.get(); |
159 } | 160 } |
160 | 161 |
| 162 ConstrainedWindowTabHelper* constrained_window_tab_helper() { |
| 163 return constrained_window_tab_helper_.get(); |
| 164 } |
| 165 |
161 ExtensionTabHelper* extension_tab_helper() { | 166 ExtensionTabHelper* extension_tab_helper() { |
162 return extension_tab_helper_.get(); | 167 return extension_tab_helper_.get(); |
163 } | 168 } |
164 | 169 |
165 const ExtensionTabHelper* extension_tab_helper() const { | 170 const ExtensionTabHelper* extension_tab_helper() const { |
166 return extension_tab_helper_.get(); | 171 return extension_tab_helper_.get(); |
167 } | 172 } |
168 | 173 |
169 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } | 174 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } |
170 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } | 175 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 272 |
268 // Tab Helpers --------------------------------------------------------------- | 273 // Tab Helpers --------------------------------------------------------------- |
269 // (These provide API for callers and have a getter function listed in the | 274 // (These provide API for callers and have a getter function listed in the |
270 // "Tab Helpers" section in the member functions area, above.) | 275 // "Tab Helpers" section in the member functions area, above.) |
271 | 276 |
272 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 277 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
273 scoped_ptr<AutofillManager> autofill_manager_; | 278 scoped_ptr<AutofillManager> autofill_manager_; |
274 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 279 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
275 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 280 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
276 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; | 281 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; |
| 282 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; |
277 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; | 283 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; |
278 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 284 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
279 scoped_ptr<FindTabHelper> find_tab_helper_; | 285 scoped_ptr<FindTabHelper> find_tab_helper_; |
280 scoped_ptr<HistoryTabHelper> history_tab_helper_; | 286 scoped_ptr<HistoryTabHelper> history_tab_helper_; |
281 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; | 287 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; |
282 | 288 |
283 // PasswordManager and its delegate. The delegate must outlive the manager, | 289 // PasswordManager and its delegate. The delegate must outlive the manager, |
284 // per documentation in password_manager.h. | 290 // per documentation in password_manager.h. |
285 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; | 291 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; |
286 scoped_ptr<PasswordManager> password_manager_; | 292 scoped_ptr<PasswordManager> password_manager_; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 333 |
328 // The supporting objects need to outlive the TabContents dtor (as they may | 334 // The supporting objects need to outlive the TabContents dtor (as they may |
329 // be called upon during its execution). As a result, this must come last | 335 // be called upon during its execution). As a result, this must come last |
330 // in the list. | 336 // in the list. |
331 scoped_ptr<TabContents> tab_contents_; | 337 scoped_ptr<TabContents> tab_contents_; |
332 | 338 |
333 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 339 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
334 }; | 340 }; |
335 | 341 |
336 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 342 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |