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 "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/guid.h" | 8 #include "base/guid.h" |
| 9 #include "base/logging.h" |
9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
10 #include "content/public/browser/client_certificate_delegate.h" | 11 #include "content/public/browser/client_certificate_delegate.h" |
11 #include "content/public/browser/memory_coordinator_delegate.h" | 12 #include "content/public/browser/memory_coordinator_delegate.h" |
12 #include "content/public/browser/navigation_ui_data.h" | 13 #include "content/public/browser/navigation_ui_data.h" |
13 #include "content/public/browser/vpn_service_proxy.h" | 14 #include "content/public/browser/vpn_service_proxy.h" |
14 #include "content/public/common/sandbox_type.h" | 15 #include "content/public/common/sandbox_type.h" |
15 #include "media/base/cdm_factory.h" | 16 #include "media/base/cdm_factory.h" |
16 #include "media/media_features.h" | 17 #include "media/media_features.h" |
17 #include "storage/browser/quota/quota_manager.h" | 18 #include "storage/browser/quota/quota_manager.h" |
18 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 226 } |
226 | 227 |
227 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { | 228 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { |
228 return std::string(); | 229 return std::string(); |
229 } | 230 } |
230 | 231 |
231 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { | 232 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { |
232 return nullptr; | 233 return nullptr; |
233 } | 234 } |
234 | 235 |
235 std::unique_ptr<storage::QuotaEvictionPolicy> | 236 void ContentBrowserClient::GetQuotaSettings( |
236 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( | 237 BrowserContext* context, |
237 content::BrowserContext* context) { | 238 StoragePartition* partition, |
238 return std::unique_ptr<storage::QuotaEvictionPolicy>(); | 239 const storage::OptionalQuotaSettingsCallback& callback) { |
| 240 // By default, no quota is provided, embedders should override. |
| 241 callback.Run(storage::GetNoQuotaSettings()); |
239 } | 242 } |
240 | 243 |
241 void ContentBrowserClient::SelectClientCertificate( | 244 void ContentBrowserClient::SelectClientCertificate( |
242 WebContents* web_contents, | 245 WebContents* web_contents, |
243 net::SSLCertRequestInfo* cert_request_info, | 246 net::SSLCertRequestInfo* cert_request_info, |
244 std::unique_ptr<ClientCertificateDelegate> delegate) {} | 247 std::unique_ptr<ClientCertificateDelegate> delegate) {} |
245 | 248 |
246 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( | 249 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( |
247 const GURL& url, ResourceContext* context) { | 250 const GURL& url, ResourceContext* context) { |
248 return nullptr; | 251 return nullptr; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 const std::string& name) { | 431 const std::string& name) { |
429 return nullptr; | 432 return nullptr; |
430 } | 433 } |
431 | 434 |
432 std::unique_ptr<MemoryCoordinatorDelegate> | 435 std::unique_ptr<MemoryCoordinatorDelegate> |
433 ContentBrowserClient::GetMemoryCoordinatorDelegate() { | 436 ContentBrowserClient::GetMemoryCoordinatorDelegate() { |
434 return std::unique_ptr<MemoryCoordinatorDelegate>(); | 437 return std::unique_ptr<MemoryCoordinatorDelegate>(); |
435 } | 438 } |
436 | 439 |
437 } // namespace content | 440 } // namespace content |
OLD | NEW |