| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" | 281 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" |
| 282 #endif | 282 #endif |
| 283 | 283 |
| 284 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 284 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 285 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" | 285 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.h" |
| 286 #endif | 286 #endif |
| 287 | 287 |
| 288 #if defined(USE_AURA) | 288 #if defined(USE_AURA) |
| 289 #include "services/service_manager/runner/common/client_util.h" | 289 #include "services/service_manager/runner/common/client_util.h" |
| 290 #include "services/ui/public/cpp/gpu/gpu.h" | 290 #include "services/ui/public/cpp/gpu/gpu.h" |
| 291 #include "ui/aura/mus/window_tree_client.h" |
| 291 #include "ui/views/mus/mus_client.h" | 292 #include "ui/views/mus/mus_client.h" |
| 292 #endif | 293 #endif |
| 293 | 294 |
| 294 #if defined(USE_ASH) | 295 #if defined(USE_ASH) |
| 295 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h" | 296 #include "chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h" |
| 296 #endif | 297 #endif |
| 297 | 298 |
| 298 #if defined(USE_X11) | 299 #if defined(USE_X11) |
| 299 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" | 300 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" |
| 300 #endif | 301 #endif |
| (...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2699 ++iter; | 2700 ++iter; |
| 2700 } | 2701 } |
| 2701 #endif | 2702 #endif |
| 2702 return NULL; | 2703 return NULL; |
| 2703 } | 2704 } |
| 2704 | 2705 |
| 2705 gpu::GpuChannelEstablishFactory* | 2706 gpu::GpuChannelEstablishFactory* |
| 2706 ChromeContentBrowserClient::GetGpuChannelEstablishFactory() { | 2707 ChromeContentBrowserClient::GetGpuChannelEstablishFactory() { |
| 2707 #if defined(USE_AURA) | 2708 #if defined(USE_AURA) |
| 2708 if (views::MusClient::Exists()) | 2709 if (views::MusClient::Exists()) |
| 2709 return views::MusClient::Get()->gpu(); | 2710 return views::MusClient::Get()->window_tree_client()->gpu(); |
| 2710 #endif | 2711 #endif |
| 2711 return nullptr; | 2712 return nullptr; |
| 2712 } | 2713 } |
| 2713 | 2714 |
| 2714 bool ChromeContentBrowserClient::AllowPepperSocketAPI( | 2715 bool ChromeContentBrowserClient::AllowPepperSocketAPI( |
| 2715 content::BrowserContext* browser_context, | 2716 content::BrowserContext* browser_context, |
| 2716 const GURL& url, | 2717 const GURL& url, |
| 2717 bool private_api, | 2718 bool private_api, |
| 2718 const content::SocketPermissionRequest* params) { | 2719 const content::SocketPermissionRequest* params) { |
| 2719 #if BUILDFLAG(ENABLE_PLUGINS) && BUILDFLAG(ENABLE_EXTENSIONS) | 2720 #if BUILDFLAG(ENABLE_PLUGINS) && BUILDFLAG(ENABLE_EXTENSIONS) |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3392 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 3393 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
| 3393 return variations::GetVariationParamValue( | 3394 return variations::GetVariationParamValue( |
| 3394 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; | 3395 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; |
| 3395 } | 3396 } |
| 3396 | 3397 |
| 3397 bool ChromeContentBrowserClient:: | 3398 bool ChromeContentBrowserClient:: |
| 3398 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3399 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3399 return variations::GetVariationParamValue( | 3400 return variations::GetVariationParamValue( |
| 3400 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3401 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3401 } | 3402 } |
| OLD | NEW |