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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 bool* in_memory); | 441 bool* in_memory); |
441 | 442 |
442 // Create and return a new quota permission context. | 443 // Create and return a new quota permission context. |
443 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 444 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
444 | 445 |
445 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for | 446 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for |
446 // temporary storage. | 447 // temporary storage. |
447 virtual std::unique_ptr<storage::QuotaEvictionPolicy> | 448 virtual std::unique_ptr<storage::QuotaEvictionPolicy> |
448 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 449 GetTemporaryStorageEvictionPolicy(BrowserContext* context); |
449 | 450 |
| 451 virtual void GetQuotaSettings( |
| 452 content::BrowserContext* context, |
| 453 const base::FilePath& partition_path, |
| 454 bool is_incognito, |
| 455 const storage::OptionalQuotaSettingsCallback& callback); |
| 456 |
450 // Informs the embedder that a certificate error has occured. If | 457 // Informs the embedder that a certificate error has occured. If |
451 // |overridable| is true and if |strict_enforcement| is false, the user | 458 // |overridable| is true and if |strict_enforcement| is false, the user |
452 // can ignore the error and continue. The embedder can call the callback | 459 // can ignore the error and continue. The embedder can call the callback |
453 // asynchronously. | 460 // asynchronously. |
454 virtual void AllowCertificateError( | 461 virtual void AllowCertificateError( |
455 WebContents* web_contents, | 462 WebContents* web_contents, |
456 int cert_error, | 463 int cert_error, |
457 const net::SSLInfo& ssl_info, | 464 const net::SSLInfo& ssl_info, |
458 const GURL& request_url, | 465 const GURL& request_url, |
459 ResourceType resource_type, | 466 ResourceType resource_type, |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 #endif | 774 #endif |
768 | 775 |
769 // Returns an instance of MemoryCoordinatorDelegate. | 776 // Returns an instance of MemoryCoordinatorDelegate. |
770 virtual std::unique_ptr<MemoryCoordinatorDelegate> | 777 virtual std::unique_ptr<MemoryCoordinatorDelegate> |
771 GetMemoryCoordinatorDelegate(); | 778 GetMemoryCoordinatorDelegate(); |
772 }; | 779 }; |
773 | 780 |
774 } // namespace content | 781 } // namespace content |
775 | 782 |
776 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 783 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |