| 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 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/browser/font_family_cache.h" | 35 #include "chrome/browser/font_family_cache.h" |
| 36 #include "chrome/browser/geolocation/chrome_access_token_store.h" | 36 #include "chrome/browser/geolocation/chrome_access_token_store.h" |
| 37 #include "chrome/browser/geolocation/geolocation_permission_context.h" | 37 #include "chrome/browser/geolocation/geolocation_permission_context.h" |
| 38 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h" | 38 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h" |
| 39 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 39 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
| 40 #include "chrome/browser/media/midi_permission_context.h" | 40 #include "chrome/browser/media/midi_permission_context.h" |
| 41 #include "chrome/browser/media/midi_permission_context_factory.h" | 41 #include "chrome/browser/media/midi_permission_context_factory.h" |
| 42 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 42 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
| 43 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 43 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
| 44 #include "chrome/browser/net/chrome_net_log.h" | 44 #include "chrome/browser/net/chrome_net_log.h" |
| 45 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
| 46 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" |
| 45 #include "chrome/browser/notifications/desktop_notification_service.h" | 47 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 46 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 48 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 47 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 49 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
| 48 #include "chrome/browser/platform_util.h" | 50 #include "chrome/browser/platform_util.h" |
| 49 #include "chrome/browser/prerender/prerender_final_status.h" | 51 #include "chrome/browser/prerender/prerender_final_status.h" |
| 50 #include "chrome/browser/prerender/prerender_manager.h" | 52 #include "chrome/browser/prerender/prerender_manager.h" |
| 51 #include "chrome/browser/prerender/prerender_manager_factory.h" | 53 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 52 #include "chrome/browser/prerender/prerender_message_filter.h" | 54 #include "chrome/browser/prerender/prerender_message_filter.h" |
| 53 #include "chrome/browser/prerender/prerender_tracker.h" | 55 #include "chrome/browser/prerender/prerender_tracker.h" |
| 54 #include "chrome/browser/printing/printing_message_filter.h" | 56 #include "chrome/browser/printing/printing_message_filter.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "chrome/grit/generated_resources.h" | 94 #include "chrome/grit/generated_resources.h" |
| 93 #include "chrome/installer/util/google_update_settings.h" | 95 #include "chrome/installer/util/google_update_settings.h" |
| 94 #include "chromeos/chromeos_constants.h" | 96 #include "chromeos/chromeos_constants.h" |
| 95 #include "components/cdm/browser/cdm_message_filter_android.h" | 97 #include "components/cdm/browser/cdm_message_filter_android.h" |
| 96 #include "components/cloud_devices/common/cloud_devices_switches.h" | 98 #include "components/cloud_devices/common/cloud_devices_switches.h" |
| 97 #include "components/content_settings/core/browser/content_settings_provider.h" | 99 #include "components/content_settings/core/browser/content_settings_provider.h" |
| 98 #include "components/content_settings/core/browser/content_settings_utils.h" | 100 #include "components/content_settings/core/browser/content_settings_utils.h" |
| 99 #include "components/content_settings/core/browser/host_content_settings_map.h" | 101 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 100 #include "components/content_settings/core/common/content_settings.h" | 102 #include "components/content_settings/core/common/content_settings.h" |
| 101 #include "components/content_settings/core/common/permission_request_id.h" | 103 #include "components/content_settings/core/common/permission_request_id.h" |
| 104 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_m
essage_filter.h" |
| 102 #include "components/dom_distiller/core/url_constants.h" | 105 #include "components/dom_distiller/core/url_constants.h" |
| 103 #include "components/google/core/browser/google_util.h" | 106 #include "components/google/core/browser/google_util.h" |
| 104 #include "components/metrics/client_info.h" | 107 #include "components/metrics/client_info.h" |
| 105 #include "components/pref_registry/pref_registry_syncable.h" | 108 #include "components/pref_registry/pref_registry_syncable.h" |
| 106 #include "components/signin/core/common/profile_management_switches.h" | 109 #include "components/signin/core/common/profile_management_switches.h" |
| 107 #include "components/translate/core/common/translate_switches.h" | 110 #include "components/translate/core/common/translate_switches.h" |
| 108 #include "components/url_fixer/url_fixer.h" | 111 #include "components/url_fixer/url_fixer.h" |
| 109 #include "content/public/browser/browser_child_process_host.h" | 112 #include "content/public/browser/browser_child_process_host.h" |
| 110 #include "content/public/browser/browser_main_parts.h" | 113 #include "content/public/browser/browser_main_parts.h" |
| 111 #include "content/public/browser/browser_ppapi_host.h" | 114 #include "content/public/browser/browser_ppapi_host.h" |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 id, profile->IsOffTheRecord(), | 933 id, profile->IsOffTheRecord(), |
| 931 profile->GetPath(), | 934 profile->GetPath(), |
| 932 context)); | 935 context)); |
| 933 #endif | 936 #endif |
| 934 #if defined(OS_ANDROID) | 937 #if defined(OS_ANDROID) |
| 935 host->AddFilter(new cdm::CdmMessageFilterAndroid()); | 938 host->AddFilter(new cdm::CdmMessageFilterAndroid()); |
| 936 #endif | 939 #endif |
| 937 if (switches::IsEnableAccountConsistency()) | 940 if (switches::IsEnableAccountConsistency()) |
| 938 host->AddFilter(new PrincipalsMessageFilter(id)); | 941 host->AddFilter(new PrincipalsMessageFilter(id)); |
| 939 | 942 |
| 943 host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter( |
| 944 DataReductionProxyChromeSettingsFactory::GetForBrowserContext( |
| 945 profile))); |
| 946 |
| 940 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 947 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| 941 profile->IsOffTheRecord())); | 948 profile->IsOffTheRecord())); |
| 942 | 949 |
| 943 for (size_t i = 0; i < extra_parts_.size(); ++i) | 950 for (size_t i = 0; i < extra_parts_.size(); ++i) |
| 944 extra_parts_[i]->RenderProcessWillLaunch(host); | 951 extra_parts_[i]->RenderProcessWillLaunch(host); |
| 945 | 952 |
| 946 RendererContentSettingRules rules; | 953 RendererContentSettingRules rules; |
| 947 if (host->IsIsolatedGuest()) { | 954 if (host->IsIsolatedGuest()) { |
| 948 #if defined(ENABLE_EXTENSIONS) | 955 #if defined(ENABLE_EXTENSIONS) |
| 949 GetGuestViewDefaultContentSettingRules(profile->IsOffTheRecord(), &rules); | 956 GetGuestViewDefaultContentSettingRules(profile->IsOffTheRecord(), &rules); |
| (...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2639 switches::kDisableWebRtcEncryption, | 2646 switches::kDisableWebRtcEncryption, |
| 2640 }; | 2647 }; |
| 2641 to_command_line->CopySwitchesFrom(from_command_line, | 2648 to_command_line->CopySwitchesFrom(from_command_line, |
| 2642 kWebRtcDevSwitchNames, | 2649 kWebRtcDevSwitchNames, |
| 2643 arraysize(kWebRtcDevSwitchNames)); | 2650 arraysize(kWebRtcDevSwitchNames)); |
| 2644 } | 2651 } |
| 2645 } | 2652 } |
| 2646 #endif // defined(ENABLE_WEBRTC) | 2653 #endif // defined(ENABLE_WEBRTC) |
| 2647 | 2654 |
| 2648 } // namespace chrome | 2655 } // namespace chrome |
| OLD | NEW |