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 13 matching lines...) Expand all Loading... |
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 "media/media_features.h" | 29 #include "media/media_features.h" |
30 #include "media/mojo/interfaces/remoting.mojom.h" | 30 #include "media/mojo/interfaces/remoting.mojom.h" |
31 #include "net/base/mime_util.h" | 31 #include "net/base/mime_util.h" |
32 #include "net/cookies/canonical_cookie.h" | 32 #include "net/cookies/canonical_cookie.h" |
33 #include "storage/browser/fileapi/file_system_context.h" | 33 #include "storage/browser/fileapi/file_system_context.h" |
| 34 #include "storage/browser/quota/quota_manager.h" |
34 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 35 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
35 #include "ui/base/page_transition_types.h" | 36 #include "ui/base/page_transition_types.h" |
36 #include "ui/base/window_open_disposition.h" | 37 #include "ui/base/window_open_disposition.h" |
37 | 38 |
38 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 39 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
39 #include "base/posix/global_descriptors.h" | 40 #include "base/posix/global_descriptors.h" |
40 #endif | 41 #endif |
41 | 42 |
42 #if defined(OS_POSIX) | 43 #if defined(OS_POSIX) |
43 #include "content/public/browser/file_descriptor_info.h" | 44 #include "content/public/browser/file_descriptor_info.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 namespace ui { | 93 namespace ui { |
93 class SelectFilePolicy; | 94 class SelectFilePolicy; |
94 } | 95 } |
95 | 96 |
96 namespace url { | 97 namespace url { |
97 class Origin; | 98 class Origin; |
98 } | 99 } |
99 | 100 |
100 namespace storage { | 101 namespace storage { |
101 class FileSystemBackend; | 102 class FileSystemBackend; |
102 class QuotaEvictionPolicy; | |
103 } | 103 } |
104 | 104 |
105 namespace content { | 105 namespace content { |
106 | 106 |
107 enum class PermissionType; | 107 enum class PermissionType; |
108 class BrowserChildProcessHost; | 108 class BrowserChildProcessHost; |
109 class BrowserContext; | 109 class BrowserContext; |
110 class BrowserMainParts; | 110 class BrowserMainParts; |
111 class BrowserPpapiHost; | 111 class BrowserPpapiHost; |
112 class BrowserURLHandler; | 112 class BrowserURLHandler; |
113 class ClientCertificateDelegate; | 113 class ClientCertificateDelegate; |
114 class ControllerPresentationServiceDelegate; | 114 class ControllerPresentationServiceDelegate; |
115 class DevToolsManagerDelegate; | 115 class DevToolsManagerDelegate; |
116 class GpuProcessHost; | 116 class GpuProcessHost; |
117 class MediaObserver; | 117 class MediaObserver; |
118 class MemoryCoordinatorDelegate; | 118 class MemoryCoordinatorDelegate; |
119 class NavigationHandle; | 119 class NavigationHandle; |
120 class NavigationUIData; | 120 class NavigationUIData; |
121 class PlatformNotificationService; | 121 class PlatformNotificationService; |
122 class QuotaPermissionContext; | 122 class QuotaPermissionContext; |
123 class ReceiverPresentationServiceDelegate; | 123 class ReceiverPresentationServiceDelegate; |
124 class RenderFrameHost; | 124 class RenderFrameHost; |
125 class RenderProcessHost; | 125 class RenderProcessHost; |
126 class RenderViewHost; | 126 class RenderViewHost; |
127 class ResourceContext; | 127 class ResourceContext; |
128 class SiteInstance; | 128 class SiteInstance; |
129 class SpeechRecognitionManagerDelegate; | 129 class SpeechRecognitionManagerDelegate; |
| 130 class StoragePartition; |
130 class TracingDelegate; | 131 class TracingDelegate; |
131 class VpnServiceProxy; | 132 class VpnServiceProxy; |
132 class WebContents; | 133 class WebContents; |
133 class WebContentsViewDelegate; | 134 class WebContentsViewDelegate; |
134 struct MainFunctionParams; | 135 struct MainFunctionParams; |
135 struct OpenURLParams; | 136 struct OpenURLParams; |
136 struct Referrer; | 137 struct Referrer; |
137 struct WebPreferences; | 138 struct WebPreferences; |
138 | 139 |
139 // Embedder API (or SPI) for participating in browser logic, to be implemented | 140 // Embedder API (or SPI) for participating in browser logic, to be implemented |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 BrowserContext* browser_context, | 449 BrowserContext* browser_context, |
449 const GURL& site, | 450 const GURL& site, |
450 bool can_be_default, | 451 bool can_be_default, |
451 std::string* partition_domain, | 452 std::string* partition_domain, |
452 std::string* partition_name, | 453 std::string* partition_name, |
453 bool* in_memory); | 454 bool* in_memory); |
454 | 455 |
455 // Create and return a new quota permission context. | 456 // Create and return a new quota permission context. |
456 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 457 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
457 | 458 |
458 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for | 459 // Allows the embedder to provide settings that determine the amount |
459 // temporary storage. | 460 // of disk space that may be used by content facing storage apis like |
460 virtual std::unique_ptr<storage::QuotaEvictionPolicy> | 461 // IndexedDatabase and ServiceWorker::CacheStorage and others. |
461 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 462 virtual void GetQuotaSettings( |
| 463 content::BrowserContext* context, |
| 464 content::StoragePartition* partition, |
| 465 const storage::OptionalQuotaSettingsCallback& callback); |
462 | 466 |
463 // Informs the embedder that a certificate error has occured. If | 467 // Informs the embedder that a certificate error has occured. If |
464 // |overridable| is true and if |strict_enforcement| is false, the user | 468 // |overridable| is true and if |strict_enforcement| is false, the user |
465 // can ignore the error and continue. The embedder can call the callback | 469 // can ignore the error and continue. The embedder can call the callback |
466 // asynchronously. | 470 // asynchronously. |
467 virtual void AllowCertificateError( | 471 virtual void AllowCertificateError( |
468 WebContents* web_contents, | 472 WebContents* web_contents, |
469 int cert_error, | 473 int cert_error, |
470 const net::SSLInfo& ssl_info, | 474 const net::SSLInfo& ssl_info, |
471 const GURL& request_url, | 475 const GURL& request_url, |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 826 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
823 | 827 |
824 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 828 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
825 // this platform will experimentally be redirected to TaskScheduler. | 829 // this platform will experimentally be redirected to TaskScheduler. |
826 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 830 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
827 }; | 831 }; |
828 | 832 |
829 } // namespace content | 833 } // namespace content |
830 | 834 |
831 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 835 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |