| 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> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 class FaviconTabHelper; | 38 class FaviconTabHelper; |
| 39 class FileSelectObserver; | 39 class FileSelectObserver; |
| 40 class FindTabHelper; | 40 class FindTabHelper; |
| 41 class InfoBarDelegate; | 41 class InfoBarDelegate; |
| 42 class HistoryTabHelper; | 42 class HistoryTabHelper; |
| 43 class NavigationController; | 43 class NavigationController; |
| 44 class OmniboxSearchHint; | 44 class OmniboxSearchHint; |
| 45 class PasswordManager; | 45 class PasswordManager; |
| 46 class PasswordManagerDelegate; | 46 class PasswordManagerDelegate; |
| 47 class PluginObserver; | 47 class PluginObserver; |
| 48 class Profile; |
| 48 class RestoreTabHelper; | 49 class RestoreTabHelper; |
| 49 class SearchEngineTabHelper; | 50 class SearchEngineTabHelper; |
| 50 class TabContentsSSLHelper; | 51 class TabContentsSSLHelper; |
| 51 class TabContentsWrapperDelegate; | 52 class TabContentsWrapperDelegate; |
| 52 class TabSpecificContentSettings; | 53 class TabSpecificContentSettings; |
| 53 class ThumbnailGenerator; | 54 class ThumbnailGenerator; |
| 54 class TranslateTabHelper; | 55 class TranslateTabHelper; |
| 55 | 56 |
| 56 namespace safe_browsing { | 57 namespace safe_browsing { |
| 57 class ClientSideDetectionHost; | 58 class ClientSideDetectionHost; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void set_delegate(TabContentsWrapperDelegate* d) { delegate_ = d; } | 106 void set_delegate(TabContentsWrapperDelegate* d) { delegate_ = d; } |
| 106 | 107 |
| 107 TabContents* tab_contents() const { return tab_contents_.get(); } | 108 TabContents* tab_contents() const { return tab_contents_.get(); } |
| 108 NavigationController& controller() const { | 109 NavigationController& controller() const { |
| 109 return tab_contents()->controller(); | 110 return tab_contents()->controller(); |
| 110 } | 111 } |
| 111 TabContentsView* view() const { return tab_contents()->view(); } | 112 TabContentsView* view() const { return tab_contents()->view(); } |
| 112 RenderViewHost* render_view_host() const { | 113 RenderViewHost* render_view_host() const { |
| 113 return tab_contents()->render_view_host(); | 114 return tab_contents()->render_view_host(); |
| 114 } | 115 } |
| 115 Profile* profile() const { return tab_contents()->profile(); } | 116 |
| 117 Profile* profile() const; |
| 116 | 118 |
| 117 // Tab Helpers --------------------------------------------------------------- | 119 // Tab Helpers --------------------------------------------------------------- |
| 118 | 120 |
| 119 AutocompleteHistoryManager* autocomplete_history_manager() { | 121 AutocompleteHistoryManager* autocomplete_history_manager() { |
| 120 return autocomplete_history_manager_.get(); | 122 return autocomplete_history_manager_.get(); |
| 121 } | 123 } |
| 122 | 124 |
| 123 AutofillManager* autofill_manager() { return autofill_manager_.get(); } | 125 AutofillManager* autofill_manager() { return autofill_manager_.get(); } |
| 124 | 126 |
| 125 // Used only for testing/automation. | 127 // Used only for testing/automation. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 336 |
| 335 // The supporting objects need to outlive the TabContents dtor (as they may | 337 // The supporting objects need to outlive the TabContents dtor (as they may |
| 336 // be called upon during its execution). As a result, this must come last | 338 // be called upon during its execution). As a result, this must come last |
| 337 // in the list. | 339 // in the list. |
| 338 scoped_ptr<TabContents> tab_contents_; | 340 scoped_ptr<TabContents> tab_contents_; |
| 339 | 341 |
| 340 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 342 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 341 }; | 343 }; |
| 342 | 344 |
| 343 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 345 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |