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