| 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 12 matching lines...) Expand all Loading... |
| 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 "media/mojo/interfaces/remoting.mojom.h" | 29 #include "media/mojo/interfaces/remoting.mojom.h" |
| 30 #include "net/base/mime_util.h" | 30 #include "net/base/mime_util.h" |
| 31 #include "net/cookies/canonical_cookie.h" | 31 #include "net/cookies/canonical_cookie.h" |
| 32 #include "storage/browser/fileapi/file_system_context.h" | 32 #include "storage/browser/fileapi/file_system_context.h" |
| 33 #include "storage/browser/quota/quota_manager.h" |
| 33 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 34 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 34 #include "ui/base/page_transition_types.h" | 35 #include "ui/base/page_transition_types.h" |
| 35 #include "ui/base/window_open_disposition.h" | 36 #include "ui/base/window_open_disposition.h" |
| 36 | 37 |
| 37 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 38 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 38 #include "base/posix/global_descriptors.h" | 39 #include "base/posix/global_descriptors.h" |
| 39 #endif | 40 #endif |
| 40 | 41 |
| 41 #if defined(OS_POSIX) | 42 #if defined(OS_POSIX) |
| 42 #include "content/public/browser/file_descriptor_info.h" | 43 #include "content/public/browser/file_descriptor_info.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 namespace ui { | 87 namespace ui { |
| 87 class SelectFilePolicy; | 88 class SelectFilePolicy; |
| 88 } | 89 } |
| 89 | 90 |
| 90 namespace url { | 91 namespace url { |
| 91 class Origin; | 92 class Origin; |
| 92 } | 93 } |
| 93 | 94 |
| 94 namespace storage { | 95 namespace storage { |
| 95 class FileSystemBackend; | 96 class FileSystemBackend; |
| 96 class QuotaEvictionPolicy; | |
| 97 } | 97 } |
| 98 | 98 |
| 99 namespace content { | 99 namespace content { |
| 100 | 100 |
| 101 enum class PermissionType; | 101 enum class PermissionType; |
| 102 class BrowserChildProcessHost; | 102 class BrowserChildProcessHost; |
| 103 class BrowserContext; | 103 class BrowserContext; |
| 104 class BrowserMainParts; | 104 class BrowserMainParts; |
| 105 class BrowserPpapiHost; | 105 class BrowserPpapiHost; |
| 106 class BrowserURLHandler; | 106 class BrowserURLHandler; |
| 107 class ClientCertificateDelegate; | 107 class ClientCertificateDelegate; |
| 108 class DevToolsManagerDelegate; | 108 class DevToolsManagerDelegate; |
| 109 class GpuProcessHost; | 109 class GpuProcessHost; |
| 110 class MediaObserver; | 110 class MediaObserver; |
| 111 class MemoryCoordinatorDelegate; | 111 class MemoryCoordinatorDelegate; |
| 112 class NavigationHandle; | 112 class NavigationHandle; |
| 113 class NavigationUIData; | 113 class NavigationUIData; |
| 114 class PlatformNotificationService; | 114 class PlatformNotificationService; |
| 115 class PresentationServiceDelegate; | 115 class PresentationServiceDelegate; |
| 116 class QuotaPermissionContext; | 116 class QuotaPermissionContext; |
| 117 class RenderFrameHost; | 117 class RenderFrameHost; |
| 118 class RenderProcessHost; | 118 class RenderProcessHost; |
| 119 class RenderViewHost; | 119 class RenderViewHost; |
| 120 class ResourceContext; | 120 class ResourceContext; |
| 121 class SiteInstance; | 121 class SiteInstance; |
| 122 class SpeechRecognitionManagerDelegate; | 122 class SpeechRecognitionManagerDelegate; |
| 123 class StoragePartition; |
| 123 class TracingDelegate; | 124 class TracingDelegate; |
| 124 class VpnServiceProxy; | 125 class VpnServiceProxy; |
| 125 class WebContents; | 126 class WebContents; |
| 126 class WebContentsViewDelegate; | 127 class WebContentsViewDelegate; |
| 127 struct MainFunctionParams; | 128 struct MainFunctionParams; |
| 128 struct OpenURLParams; | 129 struct OpenURLParams; |
| 129 struct Referrer; | 130 struct Referrer; |
| 130 struct WebPreferences; | 131 struct WebPreferences; |
| 131 | 132 |
| 132 // Embedder API (or SPI) for participating in browser logic, to be implemented | 133 // 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... |
| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 // by |render_frame_host|. This may be called multiple times if there is more | 792 // by |render_frame_host|. This may be called multiple times if there is more |
| 789 // than one source candidate in the same render frame. | 793 // than one source candidate in the same render frame. |
| 790 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 794 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
| 791 media::mojom::RemotingSourcePtr source, | 795 media::mojom::RemotingSourcePtr source, |
| 792 media::mojom::RemoterRequest request) {} | 796 media::mojom::RemoterRequest request) {} |
| 793 }; | 797 }; |
| 794 | 798 |
| 795 } // namespace content | 799 } // namespace content |
| 796 | 800 |
| 797 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 801 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |