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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
23 #include "content/public/common/media_stream_request.h" | 23 #include "content/public/common/media_stream_request.h" |
24 #include "content/public/common/resource_type.h" | 24 #include "content/public/common/resource_type.h" |
25 #include "content/public/common/service_info.h" | 25 #include "content/public/common/service_info.h" |
26 #include "content/public/common/socket_permission_request.h" | 26 #include "content/public/common/socket_permission_request.h" |
27 #include "content/public/common/window_container_type.h" | 27 #include "content/public/common/window_container_type.h" |
28 #include "media/audio/audio_manager.h" | 28 #include "media/audio/audio_manager.h" |
29 #include "net/base/mime_util.h" | 29 #include "net/base/mime_util.h" |
30 #include "net/cookies/canonical_cookie.h" | 30 #include "net/cookies/canonical_cookie.h" |
31 #include "storage/browser/fileapi/file_system_context.h" | 31 #include "storage/browser/fileapi/file_system_context.h" |
| 32 #include "storage/browser/quota/quota_manager.h" |
32 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 33 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
33 #include "ui/base/window_open_disposition.h" | 34 #include "ui/base/window_open_disposition.h" |
34 | 35 |
35 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 36 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
36 #include "base/posix/global_descriptors.h" | 37 #include "base/posix/global_descriptors.h" |
37 #endif | 38 #endif |
38 | 39 |
39 #if defined(OS_POSIX) | 40 #if defined(OS_POSIX) |
40 #include "content/public/browser/file_descriptor_info.h" | 41 #include "content/public/browser/file_descriptor_info.h" |
41 #endif | 42 #endif |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 bool* in_memory); | 449 bool* in_memory); |
449 | 450 |
450 // Create and return a new quota permission context. | 451 // Create and return a new quota permission context. |
451 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 452 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
452 | 453 |
453 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for | 454 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for |
454 // temporary storage. | 455 // temporary storage. |
455 virtual std::unique_ptr<storage::QuotaEvictionPolicy> | 456 virtual std::unique_ptr<storage::QuotaEvictionPolicy> |
456 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 457 GetTemporaryStorageEvictionPolicy(BrowserContext* context); |
457 | 458 |
| 459 virtual void GetTemporaryStorageConfiguration( |
| 460 content::BrowserContext* context, |
| 461 const base::FilePath& partition_path, bool is_incognito, |
| 462 const storage::TemporaryStorageConfigurationCallback& callback); |
| 463 |
458 // Informs the embedder that a certificate error has occured. If | 464 // Informs the embedder that a certificate error has occured. If |
459 // |overridable| is true and if |strict_enforcement| is false, the user | 465 // |overridable| is true and if |strict_enforcement| is false, the user |
460 // can ignore the error and continue. The embedder can call the callback | 466 // can ignore the error and continue. The embedder can call the callback |
461 // asynchronously. | 467 // asynchronously. |
462 virtual void AllowCertificateError( | 468 virtual void AllowCertificateError( |
463 WebContents* web_contents, | 469 WebContents* web_contents, |
464 int cert_error, | 470 int cert_error, |
465 const net::SSLInfo& ssl_info, | 471 const net::SSLInfo& ssl_info, |
466 const GURL& request_url, | 472 const GURL& request_url, |
467 ResourceType resource_type, | 473 ResourceType resource_type, |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 #endif | 784 #endif |
779 | 785 |
780 // Returns an instance of MemoryCoordinatorDelegate. | 786 // Returns an instance of MemoryCoordinatorDelegate. |
781 virtual std::unique_ptr<MemoryCoordinatorDelegate> | 787 virtual std::unique_ptr<MemoryCoordinatorDelegate> |
782 GetMemoryCoordinatorDelegate(); | 788 GetMemoryCoordinatorDelegate(); |
783 }; | 789 }; |
784 | 790 |
785 } // namespace content | 791 } // namespace content |
786 | 792 |
787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 793 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |