| 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/page_transition_types.h" | 34 #include "ui/base/page_transition_types.h" |
| 34 #include "ui/base/window_open_disposition.h" | 35 #include "ui/base/window_open_disposition.h" |
| 35 | 36 |
| 36 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 37 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 37 #include "base/posix/global_descriptors.h" | 38 #include "base/posix/global_descriptors.h" |
| 38 #endif | 39 #endif |
| 39 | 40 |
| 40 #if defined(OS_POSIX) | 41 #if defined(OS_POSIX) |
| 41 #include "content/public/browser/file_descriptor_info.h" | 42 #include "content/public/browser/file_descriptor_info.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 namespace ui { | 86 namespace ui { |
| 86 class SelectFilePolicy; | 87 class SelectFilePolicy; |
| 87 } | 88 } |
| 88 | 89 |
| 89 namespace url { | 90 namespace url { |
| 90 class Origin; | 91 class Origin; |
| 91 } | 92 } |
| 92 | 93 |
| 93 namespace storage { | 94 namespace storage { |
| 94 class FileSystemBackend; | 95 class FileSystemBackend; |
| 95 class QuotaEvictionPolicy; | |
| 96 } | 96 } |
| 97 | 97 |
| 98 namespace content { | 98 namespace content { |
| 99 | 99 |
| 100 enum class PermissionType; | 100 enum class PermissionType; |
| 101 class BrowserChildProcessHost; | 101 class BrowserChildProcessHost; |
| 102 class BrowserContext; | 102 class BrowserContext; |
| 103 class BrowserMainParts; | 103 class BrowserMainParts; |
| 104 class BrowserPpapiHost; | 104 class BrowserPpapiHost; |
| 105 class BrowserURLHandler; | 105 class BrowserURLHandler; |
| 106 class ClientCertificateDelegate; | 106 class ClientCertificateDelegate; |
| 107 class DevToolsManagerDelegate; | 107 class DevToolsManagerDelegate; |
| 108 class GpuProcessHost; | 108 class GpuProcessHost; |
| 109 class MediaObserver; | 109 class MediaObserver; |
| 110 class MemoryCoordinatorDelegate; | 110 class MemoryCoordinatorDelegate; |
| 111 class NavigationHandle; | 111 class NavigationHandle; |
| 112 class NavigationUIData; | 112 class NavigationUIData; |
| 113 class PlatformNotificationService; | 113 class PlatformNotificationService; |
| 114 class PresentationServiceDelegate; | 114 class PresentationServiceDelegate; |
| 115 class QuotaPermissionContext; | 115 class QuotaPermissionContext; |
| 116 class RenderFrameHost; | 116 class RenderFrameHost; |
| 117 class RenderProcessHost; | 117 class RenderProcessHost; |
| 118 class RenderViewHost; | 118 class RenderViewHost; |
| 119 class ResourceContext; | 119 class ResourceContext; |
| 120 class SiteInstance; | 120 class SiteInstance; |
| 121 class SpeechRecognitionManagerDelegate; | 121 class SpeechRecognitionManagerDelegate; |
| 122 class StoragePartition; |
| 122 class TracingDelegate; | 123 class TracingDelegate; |
| 123 class VpnServiceProxy; | 124 class VpnServiceProxy; |
| 124 class WebContents; | 125 class WebContents; |
| 125 class WebContentsViewDelegate; | 126 class WebContentsViewDelegate; |
| 126 struct MainFunctionParams; | 127 struct MainFunctionParams; |
| 127 struct OpenURLParams; | 128 struct OpenURLParams; |
| 128 struct Referrer; | 129 struct Referrer; |
| 129 struct WebPreferences; | 130 struct WebPreferences; |
| 130 | 131 |
| 131 // Embedder API (or SPI) for participating in browser logic, to be implemented | 132 // Embedder API (or SPI) for participating in browser logic, to be implemented |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 BrowserContext* browser_context, | 440 BrowserContext* browser_context, |
| 440 const GURL& site, | 441 const GURL& site, |
| 441 bool can_be_default, | 442 bool can_be_default, |
| 442 std::string* partition_domain, | 443 std::string* partition_domain, |
| 443 std::string* partition_name, | 444 std::string* partition_name, |
| 444 bool* in_memory); | 445 bool* in_memory); |
| 445 | 446 |
| 446 // Create and return a new quota permission context. | 447 // Create and return a new quota permission context. |
| 447 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 448 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 448 | 449 |
| 449 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for | 450 // Allows the embedder to provide settings that determine the amount |
| 450 // temporary storage. | 451 // of disk space that may be used by content facing storage apis like |
| 451 virtual std::unique_ptr<storage::QuotaEvictionPolicy> | 452 // IndexedDatabase and ServiceWorker::CacheStorage and others. |
| 452 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 453 virtual void GetQuotaSettings( |
| 454 content::BrowserContext* context, |
| 455 content::StoragePartition* partition, |
| 456 const storage::OptionalQuotaSettingsCallback& callback); |
| 453 | 457 |
| 454 // Informs the embedder that a certificate error has occured. If | 458 // Informs the embedder that a certificate error has occured. If |
| 455 // |overridable| is true and if |strict_enforcement| is false, the user | 459 // |overridable| is true and if |strict_enforcement| is false, the user |
| 456 // can ignore the error and continue. The embedder can call the callback | 460 // can ignore the error and continue. The embedder can call the callback |
| 457 // asynchronously. | 461 // asynchronously. |
| 458 virtual void AllowCertificateError( | 462 virtual void AllowCertificateError( |
| 459 WebContents* web_contents, | 463 WebContents* web_contents, |
| 460 int cert_error, | 464 int cert_error, |
| 461 const net::SSLInfo& ssl_info, | 465 const net::SSLInfo& ssl_info, |
| 462 const GURL& request_url, | 466 const GURL& request_url, |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 #endif | 775 #endif |
| 772 | 776 |
| 773 // Returns an instance of MemoryCoordinatorDelegate. | 777 // Returns an instance of MemoryCoordinatorDelegate. |
| 774 virtual std::unique_ptr<MemoryCoordinatorDelegate> | 778 virtual std::unique_ptr<MemoryCoordinatorDelegate> |
| 775 GetMemoryCoordinatorDelegate(); | 779 GetMemoryCoordinatorDelegate(); |
| 776 }; | 780 }; |
| 777 | 781 |
| 778 } // namespace content | 782 } // namespace content |
| 779 | 783 |
| 780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |