| 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" | |
| 36 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 35 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 37 #include "ui/base/page_transition_types.h" | 36 #include "ui/base/page_transition_types.h" |
| 38 #include "ui/base/window_open_disposition.h" | 37 #include "ui/base/window_open_disposition.h" |
| 39 | 38 |
| 40 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 39 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 41 #include "base/posix/global_descriptors.h" | 40 #include "base/posix/global_descriptors.h" |
| 42 #endif | 41 #endif |
| 43 | 42 |
| 44 #if defined(OS_POSIX) | 43 #if defined(OS_POSIX) |
| 45 #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... |
| 94 namespace ui { | 93 namespace ui { |
| 95 class SelectFilePolicy; | 94 class SelectFilePolicy; |
| 96 } | 95 } |
| 97 | 96 |
| 98 namespace url { | 97 namespace url { |
| 99 class Origin; | 98 class Origin; |
| 100 } | 99 } |
| 101 | 100 |
| 102 namespace storage { | 101 namespace storage { |
| 103 class FileSystemBackend; | 102 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; | |
| 131 class TracingDelegate; | 130 class TracingDelegate; |
| 132 class VpnServiceProxy; | 131 class VpnServiceProxy; |
| 133 class WebContents; | 132 class WebContents; |
| 134 class WebContentsViewDelegate; | 133 class WebContentsViewDelegate; |
| 135 struct MainFunctionParams; | 134 struct MainFunctionParams; |
| 136 struct OpenURLParams; | 135 struct OpenURLParams; |
| 137 struct Referrer; | 136 struct Referrer; |
| 138 struct WebPreferences; | 137 struct WebPreferences; |
| 139 | 138 |
| 140 // Embedder API (or SPI) for participating in browser logic, to be implemented | 139 // 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... |
| 456 BrowserContext* browser_context, | 455 BrowserContext* browser_context, |
| 457 const GURL& site, | 456 const GURL& site, |
| 458 bool can_be_default, | 457 bool can_be_default, |
| 459 std::string* partition_domain, | 458 std::string* partition_domain, |
| 460 std::string* partition_name, | 459 std::string* partition_name, |
| 461 bool* in_memory); | 460 bool* in_memory); |
| 462 | 461 |
| 463 // Create and return a new quota permission context. | 462 // Create and return a new quota permission context. |
| 464 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 463 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 465 | 464 |
| 466 // Allows the embedder to provide settings that determine the amount | 465 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for |
| 467 // of disk space that may be used by content facing storage apis like | 466 // temporary storage. |
| 468 // IndexedDatabase and ServiceWorker::CacheStorage and others. | 467 virtual std::unique_ptr<storage::QuotaEvictionPolicy> |
| 469 virtual void GetQuotaSettings( | 468 GetTemporaryStorageEvictionPolicy(BrowserContext* context); |
| 470 content::BrowserContext* context, | |
| 471 content::StoragePartition* partition, | |
| 472 const storage::OptionalQuotaSettingsCallback& callback); | |
| 473 | 469 |
| 474 // Informs the embedder that a certificate error has occured. If | 470 // Informs the embedder that a certificate error has occured. If |
| 475 // |overridable| is true and if |strict_enforcement| is false, the user | 471 // |overridable| is true and if |strict_enforcement| is false, the user |
| 476 // can ignore the error and continue. The embedder can call the callback | 472 // can ignore the error and continue. The embedder can call the callback |
| 477 // asynchronously. | 473 // asynchronously. |
| 478 virtual void AllowCertificateError( | 474 virtual void AllowCertificateError( |
| 479 WebContents* web_contents, | 475 WebContents* web_contents, |
| 480 int cert_error, | 476 int cert_error, |
| 481 const net::SSLInfo& ssl_info, | 477 const net::SSLInfo& ssl_info, |
| 482 const GURL& request_url, | 478 const GURL& request_url, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 816 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 821 | 817 |
| 822 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 818 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 823 // this platform will experimentally be redirected to TaskScheduler. | 819 // this platform will experimentally be redirected to TaskScheduler. |
| 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 820 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 825 }; | 821 }; |
| 826 | 822 |
| 827 } // namespace content | 823 } // namespace content |
| 828 | 824 |
| 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 825 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |