| 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 "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/guid.h" | 10 #include "base/guid.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/public/browser/client_certificate_delegate.h" | 13 #include "content/public/browser/client_certificate_delegate.h" |
| 14 #include "content/public/browser/memory_coordinator_delegate.h" | 14 #include "content/public/browser/memory_coordinator_delegate.h" |
| 15 #include "content/public/browser/navigation_ui_data.h" | 15 #include "content/public/browser/navigation_ui_data.h" |
| 16 #include "content/public/browser/vpn_service_proxy.h" | 16 #include "content/public/browser/vpn_service_proxy.h" |
| 17 #include "content/public/common/sandbox_type.h" | 17 #include "content/public/common/sandbox_type.h" |
| 18 #include "media/audio/audio_manager.h" |
| 18 #include "media/base/cdm_factory.h" | 19 #include "media/base/cdm_factory.h" |
| 19 #include "media/media_features.h" | 20 #include "media/media_features.h" |
| 20 #include "storage/browser/quota/quota_manager.h" | 21 #include "storage/browser/quota/quota_manager.h" |
| 21 #include "ui/gfx/image/image_skia.h" | 22 #include "ui/gfx/image/image_skia.h" |
| 22 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 23 | 24 |
| 24 namespace content { | 25 namespace content { |
| 25 | 26 |
| 26 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( | 27 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( |
| 27 const MainFunctionParams& parameters) { | 28 const MainFunctionParams& parameters) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 return false; | 110 return false; |
| 110 } | 111 } |
| 111 | 112 |
| 112 bool ContentBrowserClient::ShouldSwapBrowsingInstancesForNavigation( | 113 bool ContentBrowserClient::ShouldSwapBrowsingInstancesForNavigation( |
| 113 SiteInstance* site_instance, | 114 SiteInstance* site_instance, |
| 114 const GURL& current_url, | 115 const GURL& current_url, |
| 115 const GURL& new_url) { | 116 const GURL& new_url) { |
| 116 return false; | 117 return false; |
| 117 } | 118 } |
| 118 | 119 |
| 119 media::ScopedAudioManagerPtr ContentBrowserClient::CreateAudioManager( | 120 std::unique_ptr<media::AudioManager> ContentBrowserClient::CreateAudioManager( |
| 120 media::AudioLogFactory* audio_log_factory) { | 121 media::AudioLogFactory* audio_log_factory) { |
| 121 return nullptr; | 122 return nullptr; |
| 122 } | 123 } |
| 123 | 124 |
| 124 std::unique_ptr<media::CdmFactory> ContentBrowserClient::CreateCdmFactory() { | 125 std::unique_ptr<media::CdmFactory> ContentBrowserClient::CreateCdmFactory() { |
| 125 return nullptr; | 126 return nullptr; |
| 126 } | 127 } |
| 127 | 128 |
| 128 bool ContentBrowserClient::ShouldSwapProcessesForRedirect( | 129 bool ContentBrowserClient::ShouldSwapProcessesForRedirect( |
| 129 BrowserContext* browser_context, | 130 BrowserContext* browser_context, |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 | 454 |
| 454 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 455 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
| 455 return false; | 456 return false; |
| 456 } | 457 } |
| 457 | 458 |
| 458 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 459 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 459 return false; | 460 return false; |
| 460 } | 461 } |
| 461 | 462 |
| 462 } // namespace content | 463 } // namespace content |
| OLD | NEW |