| 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 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/printing/print_view_manager.h" | 14 #include "chrome/browser/printing/print_view_manager.h" |
| 15 #include "content/browser/tab_contents/tab_contents.h" | 15 #include "content/browser/tab_contents/tab_contents.h" |
| 16 #include "content/browser/tab_contents/tab_contents_observer.h" | 16 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 17 | 17 |
| 18 namespace prerender { | 18 namespace prerender { |
| 19 class PrerenderObserver; | 19 class PrerenderObserver; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace printing { | 22 namespace printing { |
| 23 class PrintPreviewMessageHandler; | 23 class PrintPreviewMessageHandler; |
| 24 } | 24 } |
| 25 | 25 |
| 26 class AutocompleteHistoryManager; | 26 class AutocompleteHistoryManager; |
| 27 class AutofillManager; | 27 class AutofillManager; |
| 28 class AutomationTabHelper; | 28 class AutomationTabHelper; |
| 29 class BlockedContentTabHelper; | 29 class BlockedContentTabHelper; |
| 30 class BookmarksTabHelper; | 30 class BookmarkTabHelper; |
| 31 class DownloadTabHelper; | 31 class DownloadTabHelper; |
| 32 class Extension; | 32 class Extension; |
| 33 class ExtensionTabHelper; | 33 class ExtensionTabHelper; |
| 34 class ExtensionWebNavigationTabObserver; | 34 class ExtensionWebNavigationTabObserver; |
| 35 class FaviconTabHelper; | 35 class FaviconTabHelper; |
| 36 class FileSelectObserver; | 36 class FileSelectObserver; |
| 37 class FindTabHelper; | 37 class FindTabHelper; |
| 38 class NavigationController; | 38 class NavigationController; |
| 39 class OmniboxSearchHint; | 39 class OmniboxSearchHint; |
| 40 class PasswordManager; | 40 class PasswordManager; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 // Used only for testing/automation. | 113 // Used only for testing/automation. |
| 114 AutomationTabHelper* automation_tab_helper() { | 114 AutomationTabHelper* automation_tab_helper() { |
| 115 return automation_tab_helper_.get(); | 115 return automation_tab_helper_.get(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 BlockedContentTabHelper* blocked_content_tab_helper() { | 118 BlockedContentTabHelper* blocked_content_tab_helper() { |
| 119 return blocked_content_tab_helper_.get(); | 119 return blocked_content_tab_helper_.get(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 BookmarksTabHelper* bookmarks_tab_helper() { | 122 BookmarkTabHelper* bookmark_tab_helper() { |
| 123 return bookmarks_tab_helper_.get(); | 123 return bookmark_tab_helper_.get(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 DownloadTabHelper* download_tab_helper() { | 126 DownloadTabHelper* download_tab_helper() { |
| 127 return download_tab_helper_.get(); | 127 return download_tab_helper_.get(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 ExtensionTabHelper* extension_tab_helper() { | 130 ExtensionTabHelper* extension_tab_helper() { |
| 131 return extension_tab_helper_.get(); | 131 return extension_tab_helper_.get(); |
| 132 } | 132 } |
| 133 | 133 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 187 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
| 188 | 188 |
| 189 // Tab Helpers --------------------------------------------------------------- | 189 // Tab Helpers --------------------------------------------------------------- |
| 190 // (These provide API for callers and have a getter function listed in the | 190 // (These provide API for callers and have a getter function listed in the |
| 191 // "Tab Helpers" section in the member functions area, above.) | 191 // "Tab Helpers" section in the member functions area, above.) |
| 192 | 192 |
| 193 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 193 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
| 194 scoped_ptr<AutofillManager> autofill_manager_; | 194 scoped_ptr<AutofillManager> autofill_manager_; |
| 195 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 195 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
| 196 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 196 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
| 197 scoped_ptr<BookmarksTabHelper> bookmarks_tab_helper_; | 197 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; |
| 198 scoped_ptr<DownloadTabHelper> download_tab_helper_; | 198 scoped_ptr<DownloadTabHelper> download_tab_helper_; |
| 199 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; | 199 scoped_ptr<ExtensionTabHelper> extension_tab_helper_; |
| 200 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 200 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
| 201 scoped_ptr<FindTabHelper> find_tab_helper_; | 201 scoped_ptr<FindTabHelper> find_tab_helper_; |
| 202 | 202 |
| 203 // PasswordManager and its delegate. The delegate must outlive the manager, | 203 // PasswordManager and its delegate. The delegate must outlive the manager, |
| 204 // per documentation in password_manager.h. | 204 // per documentation in password_manager.h. |
| 205 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; | 205 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; |
| 206 scoped_ptr<PasswordManager> password_manager_; | 206 scoped_ptr<PasswordManager> password_manager_; |
| 207 | 207 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 229 | 229 |
| 230 // The supporting objects need to outlive the TabContents dtor (as they may | 230 // The supporting objects need to outlive the TabContents dtor (as they may |
| 231 // be called upon during its execution). As a result, this must come last | 231 // be called upon during its execution). As a result, this must come last |
| 232 // in the list. | 232 // in the list. |
| 233 scoped_ptr<TabContents> tab_contents_; | 233 scoped_ptr<TabContents> tab_contents_; |
| 234 | 234 |
| 235 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 235 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 238 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |