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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 TabContentsSSLHelper* ssl_helper() { return ssl_helper_.get(); } | 159 TabContentsSSLHelper* ssl_helper() { return ssl_helper_.get(); } |
160 | 160 |
161 TabSpecificContentSettings* content_settings() { | 161 TabSpecificContentSettings* content_settings() { |
162 return content_settings_.get(); | 162 return content_settings_.get(); |
163 } | 163 } |
164 | 164 |
165 TranslateTabHelper* translate_tab_helper() { | 165 TranslateTabHelper* translate_tab_helper() { |
166 return translate_tab_helper_.get(); | 166 return translate_tab_helper_.get(); |
167 } | 167 } |
168 | 168 |
| 169 prerender::PrerenderObserver* prerender_observer() { |
| 170 return prerender_observer_.get(); |
| 171 } |
| 172 |
169 // Overrides ----------------------------------------------------------------- | 173 // Overrides ----------------------------------------------------------------- |
170 | 174 |
171 // TabContentsObserver overrides: | 175 // TabContentsObserver overrides: |
172 virtual void RenderViewGone() OVERRIDE; | 176 virtual void RenderViewGone() OVERRIDE; |
173 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 177 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
174 | 178 |
175 // NotificationObserver overrides: | 179 // NotificationObserver overrides: |
176 virtual void Observe(NotificationType type, | 180 virtual void Observe(NotificationType type, |
177 const NotificationSource& source, | 181 const NotificationSource& source, |
178 const NotificationDetails& details) OVERRIDE; | 182 const NotificationDetails& details) OVERRIDE; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 285 |
282 // The supporting objects need to outlive the TabContents dtor (as they may | 286 // The supporting objects need to outlive the TabContents dtor (as they may |
283 // be called upon during its execution). As a result, this must come last | 287 // be called upon during its execution). As a result, this must come last |
284 // in the list. | 288 // in the list. |
285 scoped_ptr<TabContents> tab_contents_; | 289 scoped_ptr<TabContents> tab_contents_; |
286 | 290 |
287 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 291 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
288 }; | 292 }; |
289 | 293 |
290 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 294 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |