| 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/feature_list.h" |
| 9 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 10 #include "base/guid.h" | 11 #include "base/guid.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 13 #include "content/public/browser/client_certificate_delegate.h" | 14 #include "content/public/browser/client_certificate_delegate.h" |
| 14 #include "content/public/browser/memory_coordinator_delegate.h" | 15 #include "content/public/browser/memory_coordinator_delegate.h" |
| 15 #include "content/public/browser/navigation_ui_data.h" | 16 #include "content/public/browser/navigation_ui_data.h" |
| 17 #include "content/public/browser/network_service_instance.h" |
| 16 #include "content/public/browser/vpn_service_proxy.h" | 18 #include "content/public/browser/vpn_service_proxy.h" |
| 19 #include "content/public/common/content_features.h" |
| 17 #include "content/public/common/sandbox_type.h" | 20 #include "content/public/common/sandbox_type.h" |
| 18 #include "content/public/common/url_loader_throttle.h" | 21 #include "content/public/common/url_loader_throttle.h" |
| 19 #include "media/audio/audio_manager.h" | 22 #include "media/audio/audio_manager.h" |
| 20 #include "media/base/cdm_factory.h" | 23 #include "media/base/cdm_factory.h" |
| 21 #include "media/media_features.h" | 24 #include "media/media_features.h" |
| 25 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| 22 #include "net/ssl/client_cert_identity.h" | 26 #include "net/ssl/client_cert_identity.h" |
| 23 #include "storage/browser/quota/quota_manager.h" | 27 #include "storage/browser/quota/quota_manager.h" |
| 24 #include "ui/gfx/image/image_skia.h" | 28 #include "ui/gfx/image/image_skia.h" |
| 25 #include "url/gurl.h" | 29 #include "url/gurl.h" |
| 26 #include "url/origin.h" | 30 #include "url/origin.h" |
| 27 | 31 |
| 28 namespace content { | 32 namespace content { |
| 29 | 33 |
| 30 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( | 34 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( |
| 31 const MainFunctionParams& parameters) { | 35 const MainFunctionParams& parameters) { |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 ContentBrowserClient::GetTaskSchedulerInitParams() { | 480 ContentBrowserClient::GetTaskSchedulerInitParams() { |
| 477 return nullptr; | 481 return nullptr; |
| 478 } | 482 } |
| 479 | 483 |
| 480 std::vector<std::unique_ptr<URLLoaderThrottle>> | 484 std::vector<std::unique_ptr<URLLoaderThrottle>> |
| 481 ContentBrowserClient::CreateURLLoaderThrottles( | 485 ContentBrowserClient::CreateURLLoaderThrottles( |
| 482 const base::Callback<WebContents*()>& wc_getter) { | 486 const base::Callback<WebContents*()>& wc_getter) { |
| 483 return std::vector<std::unique_ptr<URLLoaderThrottle>>(); | 487 return std::vector<std::unique_ptr<URLLoaderThrottle>>(); |
| 484 } | 488 } |
| 485 | 489 |
| 490 mojom::NetworkContextPtr ContentBrowserClient::CreateNetworkContext( |
| 491 BrowserContext* context, |
| 492 bool in_memory, |
| 493 const base::FilePath& relative_partition_path) { |
| 494 DCHECK(base::FeatureList::IsEnabled(features::kNetworkService)); |
| 495 |
| 496 mojom::NetworkContextPtr network_context; |
| 497 mojom::NetworkContextParamsPtr context_params = |
| 498 mojom::NetworkContextParams::New(); |
| 499 GetNetworkService()->CreateNetworkContext(MakeRequest(&network_context), |
| 500 std::move(context_params)); |
| 501 return network_context; |
| 502 } |
| 503 |
| 486 } // namespace content | 504 } // namespace content |
| OLD | NEW |