| 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/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/browser/renderer_preferences_util.h" | 36 #include "chrome/browser/renderer_preferences_util.h" |
| 37 #include "chrome/browser/sessions/restore_tab_helper.h" | 37 #include "chrome/browser/sessions/restore_tab_helper.h" |
| 38 #include "chrome/browser/safe_browsing/client_side_detection_host.h" | 38 #include "chrome/browser/safe_browsing/client_side_detection_host.h" |
| 39 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" | 39 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" |
| 40 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 40 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 41 #include "chrome/browser/themes/theme_service.h" | 41 #include "chrome/browser/themes/theme_service.h" |
| 42 #include "chrome/browser/themes/theme_service_factory.h" | 42 #include "chrome/browser/themes/theme_service_factory.h" |
| 43 #include "chrome/browser/translate/translate_tab_helper.h" | 43 #include "chrome/browser/translate/translate_tab_helper.h" |
| 44 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" | 44 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" |
| 45 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 45 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
| 46 #include "chrome/browser/ui/constrained_window_tab_helper.h" |
| 46 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 47 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
| 47 #include "chrome/browser/ui/intents/web_intent_picker_factory_impl.h" | 48 #include "chrome/browser/ui/intents/web_intent_picker_factory_impl.h" |
| 48 #include "chrome/browser/ui/intents/web_intent_picker_controller.h" | 49 #include "chrome/browser/ui/intents/web_intent_picker_controller.h" |
| 49 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" | 50 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
| 50 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" | 51 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" |
| 51 #include "chrome/common/chrome_notification_types.h" | 52 #include "chrome/common/chrome_notification_types.h" |
| 52 #include "chrome/common/chrome_switches.h" | 53 #include "chrome/common/chrome_switches.h" |
| 53 #include "chrome/common/pref_names.h" | 54 #include "chrome/common/pref_names.h" |
| 54 #include "chrome/common/render_messages.h" | 55 #include "chrome/common/render_messages.h" |
| 55 #include "content/browser/renderer_host/render_view_host.h" | 56 #include "content/browser/renderer_host/render_view_host.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // Stash this in the property bag so it can be retrieved without having to | 244 // Stash this in the property bag so it can be retrieved without having to |
| 244 // go to a Browser. | 245 // go to a Browser. |
| 245 property_accessor()->SetProperty(contents->property_bag(), this); | 246 property_accessor()->SetProperty(contents->property_bag(), this); |
| 246 | 247 |
| 247 // Create the tab helpers. | 248 // Create the tab helpers. |
| 248 autocomplete_history_manager_.reset(new AutocompleteHistoryManager(contents)); | 249 autocomplete_history_manager_.reset(new AutocompleteHistoryManager(contents)); |
| 249 autofill_manager_.reset(new AutofillManager(this)); | 250 autofill_manager_.reset(new AutofillManager(this)); |
| 250 automation_tab_helper_.reset(new AutomationTabHelper(contents)); | 251 automation_tab_helper_.reset(new AutomationTabHelper(contents)); |
| 251 blocked_content_tab_helper_.reset(new BlockedContentTabHelper(this)); | 252 blocked_content_tab_helper_.reset(new BlockedContentTabHelper(this)); |
| 252 bookmark_tab_helper_.reset(new BookmarkTabHelper(this)); | 253 bookmark_tab_helper_.reset(new BookmarkTabHelper(this)); |
| 254 constrained_window_tab_helper_.reset(new ConstrainedWindowTabHelper(this)); |
| 253 extension_tab_helper_.reset(new ExtensionTabHelper(this)); | 255 extension_tab_helper_.reset(new ExtensionTabHelper(this)); |
| 254 favicon_tab_helper_.reset(new FaviconTabHelper(contents)); | 256 favicon_tab_helper_.reset(new FaviconTabHelper(contents)); |
| 255 find_tab_helper_.reset(new FindTabHelper(contents)); | 257 find_tab_helper_.reset(new FindTabHelper(contents)); |
| 256 history_tab_helper_.reset(new HistoryTabHelper(contents)); | 258 history_tab_helper_.reset(new HistoryTabHelper(contents)); |
| 257 infobar_tab_helper_.reset(new InfoBarTabHelper(this)); | 259 infobar_tab_helper_.reset(new InfoBarTabHelper(this)); |
| 258 password_manager_delegate_.reset(new PasswordManagerDelegateImpl(this)); | 260 password_manager_delegate_.reset(new PasswordManagerDelegateImpl(this)); |
| 259 password_manager_.reset( | 261 password_manager_.reset( |
| 260 new PasswordManager(contents, password_manager_delegate_.get())); | 262 new PasswordManager(contents, password_manager_delegate_.get())); |
| 261 prerender_tab_helper_.reset(new prerender::PrerenderTabHelper(this)); | 263 prerender_tab_helper_.reset(new prerender::PrerenderTabHelper(this)); |
| 262 print_view_manager_.reset(new printing::PrintViewManager(this)); | 264 print_view_manager_.reset(new printing::PrintViewManager(this)); |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 681 } |
| 680 render_view_host()->Send( | 682 render_view_host()->Send( |
| 681 new ChromeViewMsg_SetClientSidePhishingDetection(routing_id(), | 683 new ChromeViewMsg_SetClientSidePhishingDetection(routing_id(), |
| 682 safe_browsing)); | 684 safe_browsing)); |
| 683 #endif | 685 #endif |
| 684 } | 686 } |
| 685 | 687 |
| 686 void TabContentsWrapper::ExitFullscreenMode() { | 688 void TabContentsWrapper::ExitFullscreenMode() { |
| 687 tab_contents()->render_view_host()->ExitFullscreen(); | 689 tab_contents()->render_view_host()->ExitFullscreen(); |
| 688 } | 690 } |
| OLD | NEW |