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 <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 45 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
46 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 46 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
47 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 47 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
48 #include "chrome/browser/defaults.h" | 48 #include "chrome/browser/defaults.h" |
49 #include "chrome/browser/download/download_prefs.h" | 49 #include "chrome/browser/download/download_prefs.h" |
50 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" | 50 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" |
51 #include "chrome/browser/font_family_cache.h" | 51 #include "chrome/browser/font_family_cache.h" |
52 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 52 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
53 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 53 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
54 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 54 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
55 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | |
56 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" | |
57 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 55 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
58 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" | 56 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" |
59 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 57 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
60 #include "chrome/browser/permissions/permission_context_base.h" | 58 #include "chrome/browser/permissions/permission_context_base.h" |
61 #include "chrome/browser/platform_util.h" | 59 #include "chrome/browser/platform_util.h" |
62 #include "chrome/browser/prerender/prerender_final_status.h" | 60 #include "chrome/browser/prerender/prerender_final_status.h" |
63 #include "chrome/browser/prerender/prerender_manager.h" | 61 #include "chrome/browser/prerender/prerender_manager.h" |
64 #include "chrome/browser/prerender/prerender_manager_factory.h" | 62 #include "chrome/browser/prerender/prerender_manager_factory.h" |
65 #include "chrome/browser/prerender/prerender_message_filter.h" | 63 #include "chrome/browser/prerender/prerender_message_filter.h" |
66 #include "chrome/browser/printing/printing_message_filter.h" | 64 #include "chrome/browser/printing/printing_message_filter.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 #include "chromeos/chromeos_constants.h" | 111 #include "chromeos/chromeos_constants.h" |
114 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 112 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
115 #include "components/autofill/core/common/autofill_switches.h" | 113 #include "components/autofill/core/common/autofill_switches.h" |
116 #include "components/cdm/browser/cdm_message_filter_android.h" | 114 #include "components/cdm/browser/cdm_message_filter_android.h" |
117 #include "components/cloud_devices/common/cloud_devices_switches.h" | 115 #include "components/cloud_devices/common/cloud_devices_switches.h" |
118 #include "components/content_settings/core/browser/content_settings_utils.h" | 116 #include "components/content_settings/core/browser/content_settings_utils.h" |
119 #include "components/content_settings/core/browser/cookie_settings.h" | 117 #include "components/content_settings/core/browser/cookie_settings.h" |
120 #include "components/content_settings/core/browser/host_content_settings_map.h" | 118 #include "components/content_settings/core/browser/host_content_settings_map.h" |
121 #include "components/content_settings/core/common/content_settings.h" | 119 #include "components/content_settings/core/common/content_settings.h" |
122 #include "components/content_settings/core/common/content_settings_types.h" | 120 #include "components/content_settings/core/common/content_settings_types.h" |
123 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m
essage_filter.h" | |
124 #include "components/dom_distiller/core/dom_distiller_switches.h" | 121 #include "components/dom_distiller/core/dom_distiller_switches.h" |
125 #include "components/dom_distiller/core/url_constants.h" | 122 #include "components/dom_distiller/core/url_constants.h" |
126 #include "components/error_page/common/error_page_switches.h" | 123 #include "components/error_page/common/error_page_switches.h" |
127 #include "components/google/core/browser/google_util.h" | 124 #include "components/google/core/browser/google_util.h" |
128 #include "components/metrics/client_info.h" | 125 #include "components/metrics/client_info.h" |
129 #include "components/net_log/chrome_net_log.h" | 126 #include "components/net_log/chrome_net_log.h" |
130 #include "components/pref_registry/pref_registry_syncable.h" | 127 #include "components/pref_registry/pref_registry_syncable.h" |
131 #include "components/prefs/pref_service.h" | 128 #include "components/prefs/pref_service.h" |
132 #include "components/prefs/scoped_user_pref_update.h" | 129 #include "components/prefs/scoped_user_pref_update.h" |
133 #include "components/rappor/rappor_utils.h" | 130 #include "components/rappor/rappor_utils.h" |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 #endif | 1027 #endif |
1031 #if !defined(DISABLE_NACL) | 1028 #if !defined(DISABLE_NACL) |
1032 host->AddFilter(new nacl::NaClHostMessageFilter( | 1029 host->AddFilter(new nacl::NaClHostMessageFilter( |
1033 id, profile->IsOffTheRecord(), | 1030 id, profile->IsOffTheRecord(), |
1034 profile->GetPath(), | 1031 profile->GetPath(), |
1035 context)); | 1032 context)); |
1036 #endif | 1033 #endif |
1037 #if defined(OS_ANDROID) | 1034 #if defined(OS_ANDROID) |
1038 host->AddFilter(new cdm::CdmMessageFilterAndroid()); | 1035 host->AddFilter(new cdm::CdmMessageFilterAndroid()); |
1039 #endif | 1036 #endif |
1040 DataReductionProxyChromeSettings* data_reduction_proxy_settings = | |
1041 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile); | |
1042 host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter( | |
1043 data_reduction_proxy_settings)); | |
1044 | 1037 |
1045 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 1038 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
1046 profile->IsOffTheRecord())); | 1039 profile->IsOffTheRecord())); |
1047 | 1040 |
1048 for (size_t i = 0; i < extra_parts_.size(); ++i) | 1041 for (size_t i = 0; i < extra_parts_.size(); ++i) |
1049 extra_parts_[i]->RenderProcessWillLaunch(host); | 1042 extra_parts_[i]->RenderProcessWillLaunch(host); |
1050 | 1043 |
1051 RendererContentSettingRules rules; | 1044 RendererContentSettingRules rules; |
1052 if (host->IsForGuestsOnly()) { | 1045 if (host->IsForGuestsOnly()) { |
1053 #if defined(ENABLE_EXTENSIONS) | 1046 #if defined(ENABLE_EXTENSIONS) |
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3153 if (channel <= kMaxDisableEncryptionChannel) { | 3146 if (channel <= kMaxDisableEncryptionChannel) { |
3154 static const char* const kWebRtcDevSwitchNames[] = { | 3147 static const char* const kWebRtcDevSwitchNames[] = { |
3155 switches::kDisableWebRtcEncryption, | 3148 switches::kDisableWebRtcEncryption, |
3156 }; | 3149 }; |
3157 to_command_line->CopySwitchesFrom(from_command_line, | 3150 to_command_line->CopySwitchesFrom(from_command_line, |
3158 kWebRtcDevSwitchNames, | 3151 kWebRtcDevSwitchNames, |
3159 arraysize(kWebRtcDevSwitchNames)); | 3152 arraysize(kWebRtcDevSwitchNames)); |
3160 } | 3153 } |
3161 } | 3154 } |
3162 #endif // defined(ENABLE_WEBRTC) | 3155 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |