| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 231 } |
| 232 | 232 |
| 233 TranslateTabHelper* translate_tab_helper() { | 233 TranslateTabHelper* translate_tab_helper() { |
| 234 return translate_tab_helper_.get(); | 234 return translate_tab_helper_.get(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 WebIntentPickerController* web_intent_picker_controller() { | 237 WebIntentPickerController* web_intent_picker_controller() { |
| 238 return web_intent_picker_controller_.get(); | 238 return web_intent_picker_controller_.get(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 ZoomController* zoom_controller() { | 241 ZoomController* zoom_controller() const { |
| 242 return zoom_controller_.get(); | 242 return zoom_controller_.get(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 // Overrides ----------------------------------------------------------------- | 245 // Overrides ----------------------------------------------------------------- |
| 246 | 246 |
| 247 // content::WebContentsObserver overrides: | 247 // content::WebContentsObserver overrides: |
| 248 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 248 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
| 249 | 249 |
| 250 private: | 250 private: |
| 251 // Used to retrieve this object from |web_contents_|, which is placed in | 251 // Used to retrieve this object from |web_contents_|, which is placed in |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 // The supporting objects need to outlive the WebContents dtor (as they may | 330 // The supporting objects need to outlive the WebContents dtor (as they may |
| 331 // be called upon during its execution). As a result, this must come last | 331 // be called upon during its execution). As a result, this must come last |
| 332 // in the list. | 332 // in the list. |
| 333 scoped_ptr<content::WebContents> web_contents_; | 333 scoped_ptr<content::WebContents> web_contents_; |
| 334 | 334 |
| 335 DISALLOW_COPY_AND_ASSIGN(TabContents); | 335 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 338 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |