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/base/cdm_factory.h" | 18 #include "media/base/cdm_factory.h" |
19 #include "media/media_features.h" | 19 #include "media/media_features.h" |
20 #include "net/cert/x509_certificate.h" | |
21 #include "storage/browser/quota/quota_manager.h" | 20 #include "storage/browser/quota/quota_manager.h" |
22 #include "ui/gfx/image/image_skia.h" | 21 #include "ui/gfx/image/image_skia.h" |
23 #include "url/gurl.h" | 22 #include "url/gurl.h" |
24 | 23 |
25 namespace content { | 24 namespace content { |
26 | 25 |
27 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( | 26 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( |
28 const MainFunctionParams& parameters) { | 27 const MainFunctionParams& parameters) { |
29 return nullptr; | 28 return nullptr; |
30 } | 29 } |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 BrowserContext* context, | 234 BrowserContext* context, |
236 StoragePartition* partition, | 235 StoragePartition* partition, |
237 const storage::OptionalQuotaSettingsCallback& callback) { | 236 const storage::OptionalQuotaSettingsCallback& callback) { |
238 // By default, no quota is provided, embedders should override. | 237 // By default, no quota is provided, embedders should override. |
239 callback.Run(storage::GetNoQuotaSettings()); | 238 callback.Run(storage::GetNoQuotaSettings()); |
240 } | 239 } |
241 | 240 |
242 void ContentBrowserClient::SelectClientCertificate( | 241 void ContentBrowserClient::SelectClientCertificate( |
243 WebContents* web_contents, | 242 WebContents* web_contents, |
244 net::SSLCertRequestInfo* cert_request_info, | 243 net::SSLCertRequestInfo* cert_request_info, |
245 net::CertificateList client_certs, | |
246 std::unique_ptr<ClientCertificateDelegate> delegate) {} | 244 std::unique_ptr<ClientCertificateDelegate> delegate) {} |
247 | 245 |
248 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( | 246 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( |
249 const GURL& url, ResourceContext* context) { | 247 const GURL& url, ResourceContext* context) { |
250 return nullptr; | 248 return nullptr; |
251 } | 249 } |
252 | 250 |
253 std::string ContentBrowserClient::GetStoragePartitionIdForSite( | 251 std::string ContentBrowserClient::GetStoragePartitionIdForSite( |
254 BrowserContext* browser_context, | 252 BrowserContext* browser_context, |
255 const GURL& site) { | 253 const GURL& site) { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 453 |
456 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 454 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
457 return false; | 455 return false; |
458 } | 456 } |
459 | 457 |
460 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 458 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
461 return false; | 459 return false; |
462 } | 460 } |
463 | 461 |
464 } // namespace content | 462 } // namespace content |
OLD | NEW |