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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 216 } |
216 | 217 |
217 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { | 218 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { |
218 return std::string(); | 219 return std::string(); |
219 } | 220 } |
220 | 221 |
221 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { | 222 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { |
222 return nullptr; | 223 return nullptr; |
223 } | 224 } |
224 | 225 |
225 std::unique_ptr<storage::QuotaEvictionPolicy> | 226 void ContentBrowserClient::GetQuotaSettings( |
226 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( | 227 BrowserContext* context, |
227 content::BrowserContext* context) { | 228 StoragePartition* partition, |
228 return std::unique_ptr<storage::QuotaEvictionPolicy>(); | 229 const storage::OptionalQuotaSettingsCallback& callback) { |
| 230 // By default, no quota is provided, embedders should override. |
| 231 callback.Run(storage::GetNoQuotaSettings()); |
229 } | 232 } |
230 | 233 |
231 void ContentBrowserClient::SelectClientCertificate( | 234 void ContentBrowserClient::SelectClientCertificate( |
232 WebContents* web_contents, | 235 WebContents* web_contents, |
233 net::SSLCertRequestInfo* cert_request_info, | 236 net::SSLCertRequestInfo* cert_request_info, |
234 std::unique_ptr<ClientCertificateDelegate> delegate) {} | 237 std::unique_ptr<ClientCertificateDelegate> delegate) {} |
235 | 238 |
236 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( | 239 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( |
237 const GURL& url, ResourceContext* context) { | 240 const GURL& url, ResourceContext* context) { |
238 return nullptr; | 241 return nullptr; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 443 |
441 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 444 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
442 return false; | 445 return false; |
443 } | 446 } |
444 | 447 |
445 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 448 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
446 return false; | 449 return false; |
447 } | 450 } |
448 | 451 |
449 } // namespace content | 452 } // namespace content |
OLD | NEW |