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 "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/browser/client_certificate_delegate.h" | 10 #include "content/public/browser/client_certificate_delegate.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { | 221 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { |
222 return nullptr; | 222 return nullptr; |
223 } | 223 } |
224 | 224 |
225 std::unique_ptr<storage::QuotaEvictionPolicy> | 225 std::unique_ptr<storage::QuotaEvictionPolicy> |
226 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( | 226 ContentBrowserClient::GetTemporaryStorageEvictionPolicy( |
227 content::BrowserContext* context) { | 227 content::BrowserContext* context) { |
228 return std::unique_ptr<storage::QuotaEvictionPolicy>(); | 228 return std::unique_ptr<storage::QuotaEvictionPolicy>(); |
229 } | 229 } |
230 | 230 |
| 231 void ContentBrowserClient::GetTemporaryStorageConfiguration( |
| 232 BrowserContext* context, |
| 233 const base::FilePath& partition_path, bool is_incognito, |
| 234 const storage::TemporaryStorageConfigurationCallback& callback) { |
| 235 // By default, no quota is provided, embedders should override. |
| 236 callback.Run(storage::TemporaryStorageConfiguration()); |
| 237 } |
| 238 |
231 void ContentBrowserClient::SelectClientCertificate( | 239 void ContentBrowserClient::SelectClientCertificate( |
232 WebContents* web_contents, | 240 WebContents* web_contents, |
233 net::SSLCertRequestInfo* cert_request_info, | 241 net::SSLCertRequestInfo* cert_request_info, |
234 std::unique_ptr<ClientCertificateDelegate> delegate) {} | 242 std::unique_ptr<ClientCertificateDelegate> delegate) {} |
235 | 243 |
236 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( | 244 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( |
237 const GURL& url, ResourceContext* context) { | 245 const GURL& url, ResourceContext* context) { |
238 return nullptr; | 246 return nullptr; |
239 } | 247 } |
240 | 248 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 return false; | 427 return false; |
420 } | 428 } |
421 #endif // defined(OS_WIN) | 429 #endif // defined(OS_WIN) |
422 | 430 |
423 std::unique_ptr<base::Value> ContentBrowserClient::GetServiceManifestOverlay( | 431 std::unique_ptr<base::Value> ContentBrowserClient::GetServiceManifestOverlay( |
424 const std::string& name) { | 432 const std::string& name) { |
425 return nullptr; | 433 return nullptr; |
426 } | 434 } |
427 | 435 |
428 } // namespace content | 436 } // namespace content |
OLD | NEW |