| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 #include "components/content_settings/core/browser/host_content_settings_map.h" | 109 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 110 #include "components/content_settings/core/common/content_settings.h" | 110 #include "components/content_settings/core/common/content_settings.h" |
| 111 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m
essage_filter.h" | 111 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m
essage_filter.h" |
| 112 #include "components/dom_distiller/core/url_constants.h" | 112 #include "components/dom_distiller/core/url_constants.h" |
| 113 #include "components/google/core/browser/google_util.h" | 113 #include "components/google/core/browser/google_util.h" |
| 114 #include "components/metrics/client_info.h" | 114 #include "components/metrics/client_info.h" |
| 115 #include "components/net_log/chrome_net_log.h" | 115 #include "components/net_log/chrome_net_log.h" |
| 116 #include "components/pref_registry/pref_registry_syncable.h" | 116 #include "components/pref_registry/pref_registry_syncable.h" |
| 117 #include "components/rappor/rappor_utils.h" | 117 #include "components/rappor/rappor_utils.h" |
| 118 #include "components/signin/core/common/profile_management_switches.h" | 118 #include "components/signin/core/common/profile_management_switches.h" |
| 119 #include "components/startup_metric_utils/browser/startup_metric_message_filter.
h" |
| 119 #include "components/translate/core/common/translate_switches.h" | 120 #include "components/translate/core/common/translate_switches.h" |
| 120 #include "components/url_formatter/url_fixer.h" | 121 #include "components/url_formatter/url_fixer.h" |
| 121 #include "components/variations/variations_associated_data.h" | 122 #include "components/variations/variations_associated_data.h" |
| 122 #include "components/version_info/version_info.h" | 123 #include "components/version_info/version_info.h" |
| 123 #include "content/public/browser/browser_child_process_host.h" | 124 #include "content/public/browser/browser_child_process_host.h" |
| 124 #include "content/public/browser/browser_main_parts.h" | 125 #include "content/public/browser/browser_main_parts.h" |
| 125 #include "content/public/browser/browser_ppapi_host.h" | 126 #include "content/public/browser/browser_ppapi_host.h" |
| 126 #include "content/public/browser/browser_thread.h" | 127 #include "content/public/browser/browser_thread.h" |
| 127 #include "content/public/browser/browser_url_handler.h" | 128 #include "content/public/browser/browser_url_handler.h" |
| 128 #include "content/public/browser/child_process_data.h" | 129 #include "content/public/browser/child_process_data.h" |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 profile->GetPath(), | 898 profile->GetPath(), |
| 898 context)); | 899 context)); |
| 899 #endif | 900 #endif |
| 900 #if defined(OS_ANDROID) | 901 #if defined(OS_ANDROID) |
| 901 host->AddFilter(new cdm::CdmMessageFilterAndroid()); | 902 host->AddFilter(new cdm::CdmMessageFilterAndroid()); |
| 902 #endif | 903 #endif |
| 903 DataReductionProxyChromeSettings* data_reduction_proxy_settings = | 904 DataReductionProxyChromeSettings* data_reduction_proxy_settings = |
| 904 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile); | 905 DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile); |
| 905 host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter( | 906 host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter( |
| 906 data_reduction_proxy_settings)); | 907 data_reduction_proxy_settings)); |
| 908 host->AddFilter(new startup_metric_utils::StartupMetricMessageFilter()); |
| 907 | 909 |
| 908 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 910 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| 909 profile->IsOffTheRecord())); | 911 profile->IsOffTheRecord())); |
| 910 | 912 |
| 911 for (size_t i = 0; i < extra_parts_.size(); ++i) | 913 for (size_t i = 0; i < extra_parts_.size(); ++i) |
| 912 extra_parts_[i]->RenderProcessWillLaunch(host); | 914 extra_parts_[i]->RenderProcessWillLaunch(host); |
| 913 | 915 |
| 914 RendererContentSettingRules rules; | 916 RendererContentSettingRules rules; |
| 915 if (host->IsForGuestsOnly()) { | 917 if (host->IsForGuestsOnly()) { |
| 916 #if defined(ENABLE_EXTENSIONS) | 918 #if defined(ENABLE_EXTENSIONS) |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2769 if (channel <= kMaxDisableEncryptionChannel) { | 2771 if (channel <= kMaxDisableEncryptionChannel) { |
| 2770 static const char* const kWebRtcDevSwitchNames[] = { | 2772 static const char* const kWebRtcDevSwitchNames[] = { |
| 2771 switches::kDisableWebRtcEncryption, | 2773 switches::kDisableWebRtcEncryption, |
| 2772 }; | 2774 }; |
| 2773 to_command_line->CopySwitchesFrom(from_command_line, | 2775 to_command_line->CopySwitchesFrom(from_command_line, |
| 2774 kWebRtcDevSwitchNames, | 2776 kWebRtcDevSwitchNames, |
| 2775 arraysize(kWebRtcDevSwitchNames)); | 2777 arraysize(kWebRtcDevSwitchNames)); |
| 2776 } | 2778 } |
| 2777 } | 2779 } |
| 2778 #endif // defined(ENABLE_WEBRTC) | 2780 #endif // defined(ENABLE_WEBRTC) |
| OLD | NEW |