| 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 #include "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" | 65 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
| 66 #include "chrome/browser/profiles/profile.h" | 66 #include "chrome/browser/profiles/profile.h" |
| 67 #include "chrome/browser/profiles/profile_io_data.h" | 67 #include "chrome/browser/profiles/profile_io_data.h" |
| 68 #include "chrome/browser/profiles/profile_manager.h" | 68 #include "chrome/browser/profiles/profile_manager.h" |
| 69 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 69 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 70 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory
.h" | 70 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory
.h" |
| 71 #include "chrome/browser/search/instant_service.h" | 71 #include "chrome/browser/search/instant_service.h" |
| 72 #include "chrome/browser/search/instant_service_factory.h" | 72 #include "chrome/browser/search/instant_service_factory.h" |
| 73 #include "chrome/browser/search/search.h" | 73 #include "chrome/browser/search/search.h" |
| 74 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" | 74 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" |
| 75 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
| 76 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 75 #include "chrome/browser/signin/principals_message_filter.h" | 77 #include "chrome/browser/signin/principals_message_filter.h" |
| 76 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" | 78 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
| 77 #include "chrome/browser/speech/tts_message_filter.h" | 79 #include "chrome/browser/speech/tts_message_filter.h" |
| 78 #include "chrome/browser/ssl/ssl_add_certificate.h" | 80 #include "chrome/browser/ssl/ssl_add_certificate.h" |
| 79 #include "chrome/browser/ssl/ssl_blocking_page.h" | 81 #include "chrome/browser/ssl/ssl_blocking_page.h" |
| 80 #include "chrome/browser/ssl/ssl_tab_helper.h" | 82 #include "chrome/browser/ssl/ssl_tab_helper.h" |
| 81 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 83 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
| 82 #include "chrome/browser/tab_contents/tab_util.h" | 84 #include "chrome/browser/tab_contents/tab_util.h" |
| 83 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" | 85 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" |
| 84 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 86 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 110 #include "components/pref_registry/pref_registry_syncable.h" | 112 #include "components/pref_registry/pref_registry_syncable.h" |
| 111 #include "components/signin/core/common/profile_management_switches.h" | 113 #include "components/signin/core/common/profile_management_switches.h" |
| 112 #include "components/translate/core/common/translate_switches.h" | 114 #include "components/translate/core/common/translate_switches.h" |
| 113 #include "content/public/browser/browser_child_process_host.h" | 115 #include "content/public/browser/browser_child_process_host.h" |
| 114 #include "content/public/browser/browser_main_parts.h" | 116 #include "content/public/browser/browser_main_parts.h" |
| 115 #include "content/public/browser/browser_ppapi_host.h" | 117 #include "content/public/browser/browser_ppapi_host.h" |
| 116 #include "content/public/browser/browser_thread.h" | 118 #include "content/public/browser/browser_thread.h" |
| 117 #include "content/public/browser/browser_url_handler.h" | 119 #include "content/public/browser/browser_url_handler.h" |
| 118 #include "content/public/browser/child_process_data.h" | 120 #include "content/public/browser/child_process_data.h" |
| 119 #include "content/public/browser/child_process_security_policy.h" | 121 #include "content/public/browser/child_process_security_policy.h" |
| 122 #include "content/public/browser/push_messaging_service.h" |
| 120 #include "content/public/browser/render_frame_host.h" | 123 #include "content/public/browser/render_frame_host.h" |
| 121 #include "content/public/browser/render_process_host.h" | 124 #include "content/public/browser/render_process_host.h" |
| 122 #include "content/public/browser/render_view_host.h" | 125 #include "content/public/browser/render_view_host.h" |
| 123 #include "content/public/browser/resource_context.h" | 126 #include "content/public/browser/resource_context.h" |
| 124 #include "content/public/browser/site_instance.h" | 127 #include "content/public/browser/site_instance.h" |
| 125 #include "content/public/browser/web_contents.h" | 128 #include "content/public/browser/web_contents.h" |
| 126 #include "content/public/common/child_process_host.h" | 129 #include "content/public/common/child_process_host.h" |
| 127 #include "content/public/common/content_descriptors.h" | 130 #include "content/public/common/content_descriptors.h" |
| 128 #include "content/public/common/url_utils.h" | 131 #include "content/public/common/url_utils.h" |
| 129 #include "extensions/browser/extension_host.h" | 132 #include "extensions/browser/extension_host.h" |
| (...skipping 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 prerender_tracker_ = g_browser_process->prerender_tracker(); | 2243 prerender_tracker_ = g_browser_process->prerender_tracker(); |
| 2241 return g_browser_process->ResourceDispatcherHostCreated(); | 2244 return g_browser_process->ResourceDispatcherHostCreated(); |
| 2242 } | 2245 } |
| 2243 | 2246 |
| 2244 // TODO(tommi): Rename from Get to Create. | 2247 // TODO(tommi): Rename from Get to Create. |
| 2245 content::SpeechRecognitionManagerDelegate* | 2248 content::SpeechRecognitionManagerDelegate* |
| 2246 ChromeContentBrowserClient::GetSpeechRecognitionManagerDelegate() { | 2249 ChromeContentBrowserClient::GetSpeechRecognitionManagerDelegate() { |
| 2247 return new speech::ChromeSpeechRecognitionManagerDelegate(); | 2250 return new speech::ChromeSpeechRecognitionManagerDelegate(); |
| 2248 } | 2251 } |
| 2249 | 2252 |
| 2253 content::PushMessagingService* |
| 2254 ChromeContentBrowserClient::CreatePushMessagingService( |
| 2255 content::BrowserContext* browser_context) { |
| 2256 return gcm::GCMProfileServiceFactory::GetForProfile( |
| 2257 Profile::FromBrowserContext(browser_context))->push_messaging_service(); |
| 2258 } |
| 2259 |
| 2250 net::NetLog* ChromeContentBrowserClient::GetNetLog() { | 2260 net::NetLog* ChromeContentBrowserClient::GetNetLog() { |
| 2251 return g_browser_process->net_log(); | 2261 return g_browser_process->net_log(); |
| 2252 } | 2262 } |
| 2253 | 2263 |
| 2254 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() { | 2264 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() { |
| 2255 return new ChromeAccessTokenStore(); | 2265 return new ChromeAccessTokenStore(); |
| 2256 } | 2266 } |
| 2257 | 2267 |
| 2258 bool ChromeContentBrowserClient::IsFastShutdownPossible() { | 2268 bool ChromeContentBrowserClient::IsFastShutdownPossible() { |
| 2259 return true; | 2269 return true; |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2756 switches::kDisableWebRtcEncryption, | 2766 switches::kDisableWebRtcEncryption, |
| 2757 }; | 2767 }; |
| 2758 to_command_line->CopySwitchesFrom(from_command_line, | 2768 to_command_line->CopySwitchesFrom(from_command_line, |
| 2759 kWebRtcDevSwitchNames, | 2769 kWebRtcDevSwitchNames, |
| 2760 arraysize(kWebRtcDevSwitchNames)); | 2770 arraysize(kWebRtcDevSwitchNames)); |
| 2761 } | 2771 } |
| 2762 } | 2772 } |
| 2763 #endif // defined(ENABLE_WEBRTC) | 2773 #endif // defined(ENABLE_WEBRTC) |
| 2764 | 2774 |
| 2765 } // namespace chrome | 2775 } // namespace chrome |
| OLD | NEW |