| 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 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 bookmark_tab_helper_.reset(new BookmarkTabHelper(this)); | 275 bookmark_tab_helper_.reset(new BookmarkTabHelper(this)); |
| 276 constrained_window_tab_helper_.reset(new ConstrainedWindowTabHelper(this)); | 276 constrained_window_tab_helper_.reset(new ConstrainedWindowTabHelper(this)); |
| 277 extension_tab_helper_.reset(new ExtensionTabHelper(this)); | 277 extension_tab_helper_.reset(new ExtensionTabHelper(this)); |
| 278 favicon_tab_helper_.reset(new FaviconTabHelper(contents)); | 278 favicon_tab_helper_.reset(new FaviconTabHelper(contents)); |
| 279 find_tab_helper_.reset(new FindTabHelper(contents)); | 279 find_tab_helper_.reset(new FindTabHelper(contents)); |
| 280 history_tab_helper_.reset(new HistoryTabHelper(contents)); | 280 history_tab_helper_.reset(new HistoryTabHelper(contents)); |
| 281 infobar_tab_helper_.reset(new InfoBarTabHelper(contents)); | 281 infobar_tab_helper_.reset(new InfoBarTabHelper(contents)); |
| 282 password_manager_delegate_.reset(new PasswordManagerDelegateImpl(this)); | 282 password_manager_delegate_.reset(new PasswordManagerDelegateImpl(this)); |
| 283 password_manager_.reset( | 283 password_manager_.reset( |
| 284 new PasswordManager(contents, password_manager_delegate_.get())); | 284 new PasswordManager(contents, password_manager_delegate_.get())); |
| 285 per_tab_prefs_.reset( |
| 286 profile()->GetPrefs()->CreatePrefServiceWithPerTabPrefStore()); |
| 285 prerender_tab_helper_.reset(new prerender::PrerenderTabHelper(this)); | 287 prerender_tab_helper_.reset(new prerender::PrerenderTabHelper(this)); |
| 286 print_view_manager_.reset(new printing::PrintViewManager(this)); | 288 print_view_manager_.reset(new printing::PrintViewManager(this)); |
| 287 restore_tab_helper_.reset(new RestoreTabHelper(this)); | 289 restore_tab_helper_.reset(new RestoreTabHelper(this)); |
| 288 #if defined(ENABLE_SAFE_BROWSING) | 290 #if defined(ENABLE_SAFE_BROWSING) |
| 289 if (profile()->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled) && | 291 if (profile()->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled) && |
| 290 g_browser_process->safe_browsing_detection_service()) { | 292 g_browser_process->safe_browsing_detection_service()) { |
| 291 safebrowsing_detection_host_.reset( | 293 safebrowsing_detection_host_.reset( |
| 292 safe_browsing::ClientSideDetectionHost::Create(contents)); | 294 safe_browsing::ClientSideDetectionHost::Create(contents)); |
| 293 } | 295 } |
| 294 #endif | 296 #endif |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 render_view_host()->Send( | 715 render_view_host()->Send( |
| 714 new ChromeViewMsg_SetClientSidePhishingDetection(routing_id(), | 716 new ChromeViewMsg_SetClientSidePhishingDetection(routing_id(), |
| 715 safe_browsing)); | 717 safe_browsing)); |
| 716 #endif | 718 #endif |
| 717 } | 719 } |
| 718 | 720 |
| 719 void TabContentsWrapper::ExitFullscreenMode() { | 721 void TabContentsWrapper::ExitFullscreenMode() { |
| 720 if (tab_contents() && render_view_host()) | 722 if (tab_contents() && render_view_host()) |
| 721 tab_contents()->render_view_host()->ExitFullscreen(); | 723 tab_contents()->render_view_host()->ExitFullscreen(); |
| 722 } | 724 } |
| OLD | NEW |