| 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 14 matching lines...) Expand all Loading... |
| 25 #include "content/public/common/resource_type.h" | 25 #include "content/public/common/resource_type.h" |
| 26 #include "content/public/common/service_info.h" | 26 #include "content/public/common/service_info.h" |
| 27 #include "content/public/common/socket_permission_request.h" | 27 #include "content/public/common/socket_permission_request.h" |
| 28 #include "content/public/common/window_container_type.h" | 28 #include "content/public/common/window_container_type.h" |
| 29 #include "media/audio/audio_manager.h" | 29 #include "media/audio/audio_manager.h" |
| 30 #include "media/media_features.h" | 30 #include "media/media_features.h" |
| 31 #include "media/mojo/interfaces/remoting.mojom.h" | 31 #include "media/mojo/interfaces/remoting.mojom.h" |
| 32 #include "net/base/mime_util.h" | 32 #include "net/base/mime_util.h" |
| 33 #include "net/cookies/canonical_cookie.h" | 33 #include "net/cookies/canonical_cookie.h" |
| 34 #include "storage/browser/fileapi/file_system_context.h" | 34 #include "storage/browser/fileapi/file_system_context.h" |
| 35 #include "storage/browser/quota/quota_manager.h" |
| 35 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 36 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 36 #include "ui/base/page_transition_types.h" | 37 #include "ui/base/page_transition_types.h" |
| 37 #include "ui/base/window_open_disposition.h" | 38 #include "ui/base/window_open_disposition.h" |
| 38 | 39 |
| 39 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 40 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 40 #include "base/posix/global_descriptors.h" | 41 #include "base/posix/global_descriptors.h" |
| 41 #endif | 42 #endif |
| 42 | 43 |
| 43 #if defined(OS_POSIX) | 44 #if defined(OS_POSIX) |
| 44 #include "content/public/browser/file_descriptor_info.h" | 45 #include "content/public/browser/file_descriptor_info.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 namespace ui { | 94 namespace ui { |
| 94 class SelectFilePolicy; | 95 class SelectFilePolicy; |
| 95 } | 96 } |
| 96 | 97 |
| 97 namespace url { | 98 namespace url { |
| 98 class Origin; | 99 class Origin; |
| 99 } | 100 } |
| 100 | 101 |
| 101 namespace storage { | 102 namespace storage { |
| 102 class FileSystemBackend; | 103 class FileSystemBackend; |
| 103 class QuotaEvictionPolicy; | |
| 104 } | 104 } |
| 105 | 105 |
| 106 namespace content { | 106 namespace content { |
| 107 | 107 |
| 108 enum class PermissionType; | 108 enum class PermissionType; |
| 109 class BrowserChildProcessHost; | 109 class BrowserChildProcessHost; |
| 110 class BrowserContext; | 110 class BrowserContext; |
| 111 class BrowserMainParts; | 111 class BrowserMainParts; |
| 112 class BrowserPpapiHost; | 112 class BrowserPpapiHost; |
| 113 class BrowserURLHandler; | 113 class BrowserURLHandler; |
| 114 class ClientCertificateDelegate; | 114 class ClientCertificateDelegate; |
| 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 PresentationServiceDelegate; | 122 class PresentationServiceDelegate; |
| 123 class QuotaPermissionContext; | 123 class QuotaPermissionContext; |
| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 BrowserContext* browser_context, | 456 BrowserContext* browser_context, |
| 456 const GURL& site, | 457 const GURL& site, |
| 457 bool can_be_default, | 458 bool can_be_default, |
| 458 std::string* partition_domain, | 459 std::string* partition_domain, |
| 459 std::string* partition_name, | 460 std::string* partition_name, |
| 460 bool* in_memory); | 461 bool* in_memory); |
| 461 | 462 |
| 462 // Create and return a new quota permission context. | 463 // Create and return a new quota permission context. |
| 463 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 464 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 464 | 465 |
| 465 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for | 466 // Allows the embedder to provide settings that determine the amount |
| 466 // temporary storage. | 467 // of disk space that may be used by content facing storage apis like |
| 467 virtual std::unique_ptr<storage::QuotaEvictionPolicy> | 468 // IndexedDatabase and ServiceWorker::CacheStorage and others. |
| 468 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 469 virtual void GetQuotaSettings( |
| 470 content::BrowserContext* context, |
| 471 content::StoragePartition* partition, |
| 472 const storage::OptionalQuotaSettingsCallback& callback); |
| 469 | 473 |
| 470 // Informs the embedder that a certificate error has occured. If | 474 // Informs the embedder that a certificate error has occured. If |
| 471 // |overridable| is true and if |strict_enforcement| is false, the user | 475 // |overridable| is true and if |strict_enforcement| is false, the user |
| 472 // can ignore the error and continue. The embedder can call the callback | 476 // can ignore the error and continue. The embedder can call the callback |
| 473 // asynchronously. | 477 // asynchronously. |
| 474 virtual void AllowCertificateError( | 478 virtual void AllowCertificateError( |
| 475 WebContents* web_contents, | 479 WebContents* web_contents, |
| 476 int cert_error, | 480 int cert_error, |
| 477 const net::SSLInfo& ssl_info, | 481 const net::SSLInfo& ssl_info, |
| 478 const GURL& request_url, | 482 const GURL& request_url, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 812 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 809 index_to_traits_callback) {} | 813 index_to_traits_callback) {} |
| 810 | 814 |
| 811 // Performs any necessary PostTask API redirection to the task scheduler. | 815 // Performs any necessary PostTask API redirection to the task scheduler. |
| 812 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 816 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
| 813 }; | 817 }; |
| 814 | 818 |
| 815 } // namespace content | 819 } // namespace content |
| 816 | 820 |
| 817 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 821 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |