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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 #include "net/ssl/ssl_cert_request_info.h" | 195 #include "net/ssl/ssl_cert_request_info.h" |
196 #include "ppapi/features/features.h" | 196 #include "ppapi/features/features.h" |
197 #include "ppapi/host/ppapi_host.h" | 197 #include "ppapi/host/ppapi_host.h" |
198 #include "printing/features/features.h" | 198 #include "printing/features/features.h" |
199 #include "services/image_decoder/public/interfaces/constants.mojom.h" | 199 #include "services/image_decoder/public/interfaces/constants.mojom.h" |
200 #include "services/preferences/public/interfaces/preferences.mojom.h" | 200 #include "services/preferences/public/interfaces/preferences.mojom.h" |
201 #include "services/service_manager/public/cpp/interface_provider.h" | 201 #include "services/service_manager/public/cpp/interface_provider.h" |
202 #include "services/service_manager/public/cpp/interface_registry.h" | 202 #include "services/service_manager/public/cpp/interface_registry.h" |
203 #include "services/service_manager/public/cpp/service.h" | 203 #include "services/service_manager/public/cpp/service.h" |
204 #include "storage/browser/fileapi/external_mount_points.h" | 204 #include "storage/browser/fileapi/external_mount_points.h" |
205 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_
provider.mojom.h" | |
206 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" | 205 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" |
207 #include "ui/base/l10n/l10n_util.h" | 206 #include "ui/base/l10n/l10n_util.h" |
208 #include "ui/base/resource/resource_bundle.h" | 207 #include "ui/base/resource/resource_bundle.h" |
209 #include "ui/resources/grit/ui_resources.h" | 208 #include "ui/resources/grit/ui_resources.h" |
210 #include "url/gurl.h" | 209 #include "url/gurl.h" |
211 #include "url/origin.h" | 210 #include "url/origin.h" |
212 | 211 |
213 #if defined(OS_WIN) | 212 #if defined(OS_WIN) |
214 #include "base/strings/string_tokenizer.h" | 213 #include "base/strings/string_tokenizer.h" |
215 #include "chrome/browser/chrome_browser_main_win.h" | 214 #include "chrome/browser/chrome_browser_main_win.h" |
(...skipping 2956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3172 | 3171 |
3173 registry->AddInterface( | 3172 registry->AddInterface( |
3174 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: | 3173 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: |
3175 BindSensitiveInputVisibilityService, | 3174 BindSensitiveInputVisibilityService, |
3176 render_frame_host)); | 3175 render_frame_host)); |
3177 | 3176 |
3178 #if defined(OS_ANDROID) | 3177 #if defined(OS_ANDROID) |
3179 registry->AddInterface( | 3178 registry->AddInterface( |
3180 render_frame_host->GetJavaInterfaces() | 3179 render_frame_host->GetJavaInterfaces() |
3181 ->CreateInterfaceFactory<payments::mojom::PaymentRequest>()); | 3180 ->CreateInterfaceFactory<payments::mojom::PaymentRequest>()); |
3182 registry->AddInterface( | |
3183 render_frame_host->GetJavaInterfaces() | |
3184 ->CreateInterfaceFactory<blink::mojom::InstalledAppProvider>()); | |
3185 content::WebContents* web_contents = | 3181 content::WebContents* web_contents = |
3186 content::WebContents::FromRenderFrameHost(render_frame_host); | 3182 content::WebContents::FromRenderFrameHost(render_frame_host); |
3187 if (web_contents) { | 3183 if (web_contents) { |
3188 registry->AddInterface( | 3184 registry->AddInterface( |
3189 base::Bind(&ForwardShareServiceRequest, | 3185 base::Bind(&ForwardShareServiceRequest, |
3190 web_contents->GetJavaInterfaces()->GetWeakPtr())); | 3186 web_contents->GetJavaInterfaces()->GetWeakPtr())); |
3191 } | 3187 } |
3192 #else | 3188 #else |
3193 if (AreExperimentalWebPlatformFeaturesEnabled() && | 3189 if (AreExperimentalWebPlatformFeaturesEnabled() && |
3194 base::FeatureList::IsEnabled(features::kWebPayments)) { | 3190 base::FeatureList::IsEnabled(features::kWebPayments)) { |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3566 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3562 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
3567 return variations::GetVariationParamValue( | 3563 return variations::GetVariationParamValue( |
3568 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3564 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
3569 } | 3565 } |
3570 | 3566 |
3571 // static | 3567 // static |
3572 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3568 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3573 const storage::QuotaSettings* settings) { | 3569 const storage::QuotaSettings* settings) { |
3574 g_default_quota_settings = settings; | 3570 g_default_quota_settings = settings; |
3575 } | 3571 } |
OLD | NEW |