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