| 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 3271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3282 arraysize(kWebRtcDevSwitchNames)); | 3282 arraysize(kWebRtcDevSwitchNames)); |
| 3283 } | 3283 } |
| 3284 } | 3284 } |
| 3285 #endif // BUILDFLAG(ENABLE_WEBRTC) | 3285 #endif // BUILDFLAG(ENABLE_WEBRTC) |
| 3286 | 3286 |
| 3287 std::unique_ptr<content::MemoryCoordinatorDelegate> | 3287 std::unique_ptr<content::MemoryCoordinatorDelegate> |
| 3288 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { | 3288 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { |
| 3289 return memory::ChromeMemoryCoordinatorDelegate::Create(); | 3289 return memory::ChromeMemoryCoordinatorDelegate::Create(); |
| 3290 } | 3290 } |
| 3291 | 3291 |
| 3292 bool ChromeContentBrowserClient:: |
| 3293 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3294 return variations::GetVariationParamValue( |
| 3295 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3296 } |
| 3297 |
| 3292 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 3298 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| 3293 void ChromeContentBrowserClient::CreateMediaRemoter( | 3299 void ChromeContentBrowserClient::CreateMediaRemoter( |
| 3294 content::RenderFrameHost* render_frame_host, | 3300 content::RenderFrameHost* render_frame_host, |
| 3295 media::mojom::RemotingSourcePtr source, | 3301 media::mojom::RemotingSourcePtr source, |
| 3296 media::mojom::RemoterRequest request) { | 3302 media::mojom::RemoterRequest request) { |
| 3297 #if defined(ENABLE_MEDIA_ROUTER) | 3303 #if defined(ENABLE_MEDIA_ROUTER) |
| 3298 CastRemotingConnector::CreateMediaRemoter( | 3304 CastRemotingConnector::CreateMediaRemoter( |
| 3299 render_frame_host, std::move(source), std::move(request)); | 3305 render_frame_host, std::move(source), std::move(request)); |
| 3300 #else | 3306 #else |
| 3301 // Chrome's media remoting implementation depends on the Media Router | 3307 // Chrome's media remoting implementation depends on the Media Router |
| 3302 // infrastructure to identify remote sinks and provide the user interface for | 3308 // infrastructure to identify remote sinks and provide the user interface for |
| 3303 // sink selection. In the case where the Media Router is not present, simply | 3309 // sink selection. In the case where the Media Router is not present, simply |
| 3304 // drop the interface request. This will prevent code paths for media remoting | 3310 // drop the interface request. This will prevent code paths for media remoting |
| 3305 // in the renderer process from activating. | 3311 // in the renderer process from activating. |
| 3306 #endif | 3312 #endif |
| 3307 } | 3313 } |
| 3308 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 3314 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| OLD | NEW |