| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 namespace browser_sync { | 74 namespace browser_sync { |
| 75 class SyncedTabDelegate; | 75 class SyncedTabDelegate; |
| 76 } | 76 } |
| 77 | 77 |
| 78 namespace captive_portal { | 78 namespace captive_portal { |
| 79 class CaptivePortalTabHelper; | 79 class CaptivePortalTabHelper; |
| 80 } | 80 } |
| 81 | 81 |
| 82 namespace chrome { | |
| 83 namespace search { | |
| 84 class SearchTabHelper; | |
| 85 } | |
| 86 } | |
| 87 | |
| 88 namespace chromeos { | 82 namespace chromeos { |
| 89 class SimpleWebViewDialog; | 83 class SimpleWebViewDialog; |
| 90 class WebUILoginView; | 84 class WebUILoginView; |
| 91 } | 85 } |
| 92 | 86 |
| 93 namespace extensions { | 87 namespace extensions { |
| 94 class WebAuthFlow; | 88 class WebAuthFlow; |
| 95 class WebNavigationTabObserver; | 89 class WebNavigationTabObserver; |
| 96 } | 90 } |
| 97 | 91 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 printing::PrintViewManager* print_view_manager() { | 239 printing::PrintViewManager* print_view_manager() { |
| 246 return print_view_manager_.get(); | 240 return print_view_manager_.get(); |
| 247 } | 241 } |
| 248 | 242 |
| 249 SadTabHelper* sad_tab_helper() { return sad_tab_helper_.get(); } | 243 SadTabHelper* sad_tab_helper() { return sad_tab_helper_.get(); } |
| 250 | 244 |
| 251 SearchEngineTabHelper* search_engine_tab_helper() { | 245 SearchEngineTabHelper* search_engine_tab_helper() { |
| 252 return search_engine_tab_helper_.get(); | 246 return search_engine_tab_helper_.get(); |
| 253 } | 247 } |
| 254 | 248 |
| 255 chrome::search::SearchTabHelper* search_tab_helper() { | |
| 256 return search_tab_helper_.get(); | |
| 257 } | |
| 258 | |
| 259 browser_sync::SyncedTabDelegate* synced_tab_delegate() { | 249 browser_sync::SyncedTabDelegate* synced_tab_delegate() { |
| 260 return synced_tab_delegate_.get(); | 250 return synced_tab_delegate_.get(); |
| 261 } | 251 } |
| 262 | 252 |
| 263 TabSpecificContentSettings* content_settings() { | 253 TabSpecificContentSettings* content_settings() { |
| 264 return content_settings_.get(); | 254 return content_settings_.get(); |
| 265 } | 255 } |
| 266 | 256 |
| 267 // NOTE: This returns NULL unless in-browser thumbnail generation is enabled. | 257 // NOTE: This returns NULL unless in-browser thumbnail generation is enabled. |
| 268 ThumbnailGenerator* thumbnail_generator() { | 258 ThumbnailGenerator* thumbnail_generator() { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 scoped_ptr<PasswordManager> password_manager_; | 315 scoped_ptr<PasswordManager> password_manager_; |
| 326 | 316 |
| 327 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; | 317 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; |
| 328 scoped_ptr<prerender::PrerenderTabHelper> prerender_tab_helper_; | 318 scoped_ptr<prerender::PrerenderTabHelper> prerender_tab_helper_; |
| 329 | 319 |
| 330 // Handles print job for this contents. | 320 // Handles print job for this contents. |
| 331 scoped_ptr<printing::PrintViewManager> print_view_manager_; | 321 scoped_ptr<printing::PrintViewManager> print_view_manager_; |
| 332 | 322 |
| 333 scoped_ptr<SadTabHelper> sad_tab_helper_; | 323 scoped_ptr<SadTabHelper> sad_tab_helper_; |
| 334 scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_; | 324 scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_; |
| 335 scoped_ptr<chrome::search::SearchTabHelper> search_tab_helper_; | |
| 336 scoped_ptr<browser_sync::SyncedTabDelegate> synced_tab_delegate_; | 325 scoped_ptr<browser_sync::SyncedTabDelegate> synced_tab_delegate_; |
| 337 | 326 |
| 338 // The TabSpecificContentSettings object is used to query the blocked content | 327 // The TabSpecificContentSettings object is used to query the blocked content |
| 339 // state by various UI elements. | 328 // state by various UI elements. |
| 340 scoped_ptr<TabSpecificContentSettings> content_settings_; | 329 scoped_ptr<TabSpecificContentSettings> content_settings_; |
| 341 | 330 |
| 342 scoped_ptr<ThumbnailGenerator> thumbnail_generator_; | 331 scoped_ptr<ThumbnailGenerator> thumbnail_generator_; |
| 343 scoped_ptr<TranslateTabHelper> translate_tab_helper_; | 332 scoped_ptr<TranslateTabHelper> translate_tab_helper_; |
| 344 | 333 |
| 345 // Handles displaying a web intents picker to the user. | 334 // Handles displaying a web intents picker to the user. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 370 | 359 |
| 371 // The supporting objects need to outlive the WebContents dtor (as they may | 360 // The supporting objects need to outlive the WebContents dtor (as they may |
| 372 // be called upon during its execution). As a result, this must come last | 361 // be called upon during its execution). As a result, this must come last |
| 373 // in the list. | 362 // in the list. |
| 374 scoped_ptr<content::WebContents> web_contents_; | 363 scoped_ptr<content::WebContents> web_contents_; |
| 375 | 364 |
| 376 DISALLOW_COPY_AND_ASSIGN(TabContents); | 365 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 377 }; | 366 }; |
| 378 | 367 |
| 379 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 368 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |