| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 | 117 |
| 118 TabContents* tab_contents() const { return tab_contents_.get(); } | 118 TabContents* tab_contents() const { return tab_contents_.get(); } |
| 119 NavigationController& controller() const { | 119 NavigationController& controller() const { |
| 120 return tab_contents()->controller(); | 120 return tab_contents()->controller(); |
| 121 } | 121 } |
| 122 TabContentsView* view() const { return tab_contents()->view(); } | 122 TabContentsView* view() const { return tab_contents()->view(); } |
| 123 RenderViewHost* render_view_host() const { | 123 RenderViewHost* render_view_host() const { |
| 124 return tab_contents()->render_view_host(); | 124 return tab_contents()->render_view_host(); |
| 125 } | 125 } |
| 126 WebUI* web_ui() const { return tab_contents()->web_ui(); } |
| 126 | 127 |
| 127 Profile* profile() const; | 128 Profile* profile() const; |
| 128 | 129 |
| 129 // Tab Helpers --------------------------------------------------------------- | 130 // Tab Helpers --------------------------------------------------------------- |
| 130 | 131 |
| 131 AutocompleteHistoryManager* autocomplete_history_manager() { | 132 AutocompleteHistoryManager* autocomplete_history_manager() { |
| 132 return autocomplete_history_manager_.get(); | 133 return autocomplete_history_manager_.get(); |
| 133 } | 134 } |
| 134 | 135 |
| 135 AutofillManager* autofill_manager() { return autofill_manager_.get(); } | 136 AutofillManager* autofill_manager() { return autofill_manager_.get(); } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 350 |
| 350 // The supporting objects need to outlive the TabContents dtor (as they may | 351 // The supporting objects need to outlive the TabContents dtor (as they may |
| 351 // be called upon during its execution). As a result, this must come last | 352 // be called upon during its execution). As a result, this must come last |
| 352 // in the list. | 353 // in the list. |
| 353 scoped_ptr<TabContents> tab_contents_; | 354 scoped_ptr<TabContents> tab_contents_; |
| 354 | 355 |
| 355 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 356 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 356 }; | 357 }; |
| 357 | 358 |
| 358 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 359 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |