| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "chrome/browser/field_trial_recorder.h" | 51 #include "chrome/browser/field_trial_recorder.h" |
| 52 #include "chrome/browser/font_family_cache.h" | 52 #include "chrome/browser/font_family_cache.h" |
| 53 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" | 53 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
| 54 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" | 54 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" |
| 55 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 55 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
| 56 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 56 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
| 57 #include "chrome/browser/net_benchmarking.h" | 57 #include "chrome/browser/net_benchmarking.h" |
| 58 #include "chrome/browser/notifications/platform_notification_service_impl.h" | 58 #include "chrome/browser/notifications/platform_notification_service_impl.h" |
| 59 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" | 59 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" |
| 60 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 60 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
| 61 #include "chrome/browser/payments/payment_request_impl.h" | 61 #include "chrome/browser/payments/payment_request_factory.h" |
| 62 #include "chrome/browser/permissions/permission_context_base.h" | 62 #include "chrome/browser/permissions/permission_context_base.h" |
| 63 #include "chrome/browser/platform_util.h" | 63 #include "chrome/browser/platform_util.h" |
| 64 #include "chrome/browser/prefs/preferences_connection_manager.h" | 64 #include "chrome/browser/prefs/preferences_connection_manager.h" |
| 65 #include "chrome/browser/prerender/prerender_final_status.h" | 65 #include "chrome/browser/prerender/prerender_final_status.h" |
| 66 #include "chrome/browser/prerender/prerender_manager.h" | 66 #include "chrome/browser/prerender/prerender_manager.h" |
| 67 #include "chrome/browser/prerender/prerender_manager_factory.h" | 67 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 68 #include "chrome/browser/prerender/prerender_message_filter.h" | 68 #include "chrome/browser/prerender/prerender_message_filter.h" |
| 69 #include "chrome/browser/printing/printing_message_filter.h" | 69 #include "chrome/browser/printing/printing_message_filter.h" |
| 70 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" | 70 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
| 71 #include "chrome/browser/profiles/profile.h" | 71 #include "chrome/browser/profiles/profile.h" |
| (...skipping 2938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3010 ->CreateInterfaceFactory<payments::mojom::PaymentRequest>()); | 3010 ->CreateInterfaceFactory<payments::mojom::PaymentRequest>()); |
| 3011 registry->AddInterface( | 3011 registry->AddInterface( |
| 3012 base::Bind(&ForwardShareServiceRequest, | 3012 base::Bind(&ForwardShareServiceRequest, |
| 3013 web_contents->GetJavaInterfaces()->GetWeakPtr())); | 3013 web_contents->GetJavaInterfaces()->GetWeakPtr())); |
| 3014 } | 3014 } |
| 3015 #elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN) | 3015 #elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN) |
| 3016 if (AreExperimentalWebPlatformFeaturesEnabled()) { | 3016 if (AreExperimentalWebPlatformFeaturesEnabled()) { |
| 3017 content::WebContents* web_contents = | 3017 content::WebContents* web_contents = |
| 3018 content::WebContents::FromRenderFrameHost(render_frame_host); | 3018 content::WebContents::FromRenderFrameHost(render_frame_host); |
| 3019 if (web_contents) { | 3019 if (web_contents) { |
| 3020 registry->AddInterface( | 3020 registry->AddInterface(base::Bind( |
| 3021 base::Bind(CreatePaymentRequestHandler, web_contents)); | 3021 payments::CreatePaymentRequestForWebContents, web_contents)); |
| 3022 } | 3022 } |
| 3023 } | 3023 } |
| 3024 #endif | 3024 #endif |
| 3025 | 3025 |
| 3026 #if defined(OS_ANDROID) | 3026 #if defined(OS_ANDROID) |
| 3027 if (AreExperimentalWebPlatformFeaturesEnabled()) { | 3027 if (AreExperimentalWebPlatformFeaturesEnabled()) { |
| 3028 content::WebContents* web_contents = | 3028 content::WebContents* web_contents = |
| 3029 content::WebContents::FromRenderFrameHost(render_frame_host); | 3029 content::WebContents::FromRenderFrameHost(render_frame_host); |
| 3030 if (web_contents) { | 3030 if (web_contents) { |
| 3031 registry->AddInterface( | 3031 registry->AddInterface( |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 3362 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
| 3363 return variations::GetVariationParamValue( | 3363 return variations::GetVariationParamValue( |
| 3364 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; | 3364 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; |
| 3365 } | 3365 } |
| 3366 | 3366 |
| 3367 bool ChromeContentBrowserClient:: | 3367 bool ChromeContentBrowserClient:: |
| 3368 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3368 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3369 return variations::GetVariationParamValue( | 3369 return variations::GetVariationParamValue( |
| 3370 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3370 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3371 } | 3371 } |
| OLD | NEW |