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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 198 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
199 #include "net/cookies/canonical_cookie.h" | 199 #include "net/cookies/canonical_cookie.h" |
200 #include "net/cookies/cookie_options.h" | 200 #include "net/cookies/cookie_options.h" |
201 #include "net/ssl/ssl_cert_request_info.h" | 201 #include "net/ssl/ssl_cert_request_info.h" |
202 #include "ppapi/features/features.h" | 202 #include "ppapi/features/features.h" |
203 #include "ppapi/host/ppapi_host.h" | 203 #include "ppapi/host/ppapi_host.h" |
204 #include "printing/features/features.h" | 204 #include "printing/features/features.h" |
205 #include "services/preferences/public/interfaces/preferences.mojom.h" | 205 #include "services/preferences/public/interfaces/preferences.mojom.h" |
206 #include "services/service_manager/public/cpp/binder_registry.h" | 206 #include "services/service_manager/public/cpp/binder_registry.h" |
207 #include "services/service_manager/public/cpp/interface_provider.h" | 207 #include "services/service_manager/public/cpp/interface_provider.h" |
208 #include "services/service_manager/public/cpp/interface_registry.h" | |
209 #include "services/service_manager/public/cpp/service.h" | 208 #include "services/service_manager/public/cpp/service.h" |
210 #include "storage/browser/fileapi/external_mount_points.h" | 209 #include "storage/browser/fileapi/external_mount_points.h" |
211 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_
provider.mojom.h" | 210 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_
provider.mojom.h" |
212 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" | 211 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" |
213 #include "ui/base/l10n/l10n_util.h" | 212 #include "ui/base/l10n/l10n_util.h" |
214 #include "ui/base/resource/resource_bundle.h" | 213 #include "ui/base/resource/resource_bundle.h" |
215 #include "ui/resources/grit/ui_resources.h" | 214 #include "ui/resources/grit/ui_resources.h" |
216 #include "url/gurl.h" | 215 #include "url/gurl.h" |
217 #include "url/origin.h" | 216 #include "url/origin.h" |
218 | 217 |
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3142 #endif | 3141 #endif |
3143 | 3142 |
3144 #if defined(OS_CHROMEOS) | 3143 #if defined(OS_CHROMEOS) |
3145 registry->AddInterface<metrics::mojom::LeakDetector>( | 3144 registry->AddInterface<metrics::mojom::LeakDetector>( |
3146 base::Bind(&metrics::LeakDetectorRemoteController::Create), | 3145 base::Bind(&metrics::LeakDetectorRemoteController::Create), |
3147 ui_task_runner); | 3146 ui_task_runner); |
3148 #endif | 3147 #endif |
3149 } | 3148 } |
3150 | 3149 |
3151 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( | 3150 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( |
3152 service_manager::InterfaceRegistry* registry, | 3151 service_manager::BinderRegistry* registry, |
3153 content::RenderFrameHost* render_frame_host) { | 3152 content::RenderFrameHost* render_frame_host) { |
3154 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. | 3153 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. |
3155 #if defined(OS_CHROMEOS) | 3154 #if defined(OS_CHROMEOS) |
3156 registry->AddInterface( | 3155 registry->AddInterface( |
3157 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, | 3156 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, |
3158 render_frame_host)); | 3157 render_frame_host)); |
3159 #endif // defined(OS_CHROMEOS) | 3158 #endif // defined(OS_CHROMEOS) |
3160 | 3159 |
3161 #if defined(ENABLE_MOJO_MEDIA) | 3160 #if defined(ENABLE_MOJO_MEDIA) |
3162 registry->AddInterface( | 3161 registry->AddInterface( |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3625 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3624 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
3626 return variations::GetVariationParamValue( | 3625 return variations::GetVariationParamValue( |
3627 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3626 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
3628 } | 3627 } |
3629 | 3628 |
3630 // static | 3629 // static |
3631 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3630 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3632 const storage::QuotaSettings* settings) { | 3631 const storage::QuotaSettings* settings) { |
3633 g_default_quota_settings = settings; | 3632 g_default_quota_settings = settings; |
3634 } | 3633 } |
OLD | NEW |