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" | |
10 #include "build/build_config.h" | 9 #include "build/build_config.h" |
11 #include "content/public/browser/client_certificate_delegate.h" | 10 #include "content/public/browser/client_certificate_delegate.h" |
12 #include "content/public/browser/memory_coordinator_delegate.h" | 11 #include "content/public/browser/memory_coordinator_delegate.h" |
13 #include "content/public/browser/navigation_ui_data.h" | 12 #include "content/public/browser/navigation_ui_data.h" |
14 #include "content/public/browser/vpn_service_proxy.h" | 13 #include "content/public/browser/vpn_service_proxy.h" |
15 #include "content/public/common/sandbox_type.h" | 14 #include "content/public/common/sandbox_type.h" |
16 #include "media/base/cdm_factory.h" | 15 #include "media/base/cdm_factory.h" |
17 #include "media/media_features.h" | 16 #include "media/media_features.h" |
18 #include "storage/browser/quota/quota_manager.h" | 17 #include "storage/browser/quota/quota_manager.h" |
19 #include "ui/gfx/image/image_skia.h" | 18 #include "ui/gfx/image/image_skia.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 } | 225 } |
227 | 226 |
228 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { | 227 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { |
229 return std::string(); | 228 return std::string(); |
230 } | 229 } |
231 | 230 |
232 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { | 231 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { |
233 return nullptr; | 232 return nullptr; |
234 } | 233 } |
235 | 234 |
236 void ContentBrowserClient::GetQuotaSettings( | 235 std::unique_ptr<storage::QuotaEvictionPolicy> |
237 BrowserContext* context, | 236 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( |
238 StoragePartition* partition, | 237 content::BrowserContext* context) { |
239 const storage::OptionalQuotaSettingsCallback& callback) { | 238 return std::unique_ptr<storage::QuotaEvictionPolicy>(); |
240 // By default, no quota is provided, embedders should override. | |
241 callback.Run(storage::GetNoQuotaSettings()); | |
242 } | 239 } |
243 | 240 |
244 void ContentBrowserClient::SelectClientCertificate( | 241 void ContentBrowserClient::SelectClientCertificate( |
245 WebContents* web_contents, | 242 WebContents* web_contents, |
246 net::SSLCertRequestInfo* cert_request_info, | 243 net::SSLCertRequestInfo* cert_request_info, |
247 std::unique_ptr<ClientCertificateDelegate> delegate) {} | 244 std::unique_ptr<ClientCertificateDelegate> delegate) {} |
248 | 245 |
249 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( | 246 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( |
250 const GURL& url, ResourceContext* context) { | 247 const GURL& url, ResourceContext* context) { |
251 return nullptr; | 248 return nullptr; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 440 |
444 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 441 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
445 return false; | 442 return false; |
446 } | 443 } |
447 | 444 |
448 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 445 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
449 return false; | 446 return false; |
450 } | 447 } |
451 | 448 |
452 } // namespace content | 449 } // namespace content |
OLD | NEW |