Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 namespace ui { 88 namespace ui {
88 class SelectFilePolicy; 89 class SelectFilePolicy;
89 } 90 }
90 91
91 namespace url { 92 namespace url {
92 class Origin; 93 class Origin;
93 } 94 }
94 95
95 namespace storage { 96 namespace storage {
96 class FileSystemBackend; 97 class FileSystemBackend;
97 class QuotaEvictionPolicy;
98 } 98 }
99 99
100 namespace content { 100 namespace content {
101 101
102 enum class PermissionType; 102 enum class PermissionType;
103 class BrowserChildProcessHost; 103 class BrowserChildProcessHost;
104 class BrowserContext; 104 class BrowserContext;
105 class BrowserMainParts; 105 class BrowserMainParts;
106 class BrowserPpapiHost; 106 class BrowserPpapiHost;
107 class BrowserURLHandler; 107 class BrowserURLHandler;
108 class ClientCertificateDelegate; 108 class ClientCertificateDelegate;
109 class DevToolsManagerDelegate; 109 class DevToolsManagerDelegate;
110 class GpuProcessHost; 110 class GpuProcessHost;
111 class MediaObserver; 111 class MediaObserver;
112 class MemoryCoordinatorDelegate; 112 class MemoryCoordinatorDelegate;
113 class NavigationHandle; 113 class NavigationHandle;
114 class NavigationUIData; 114 class NavigationUIData;
115 class PlatformNotificationService; 115 class PlatformNotificationService;
116 class PresentationServiceDelegate; 116 class PresentationServiceDelegate;
117 class QuotaPermissionContext; 117 class QuotaPermissionContext;
118 class RenderFrameHost; 118 class RenderFrameHost;
119 class RenderProcessHost; 119 class RenderProcessHost;
120 class RenderViewHost; 120 class RenderViewHost;
121 class ResourceContext; 121 class ResourceContext;
122 class SiteInstance; 122 class SiteInstance;
123 class SpeechRecognitionManagerDelegate; 123 class SpeechRecognitionManagerDelegate;
124 class StoragePartition;
124 class TracingDelegate; 125 class TracingDelegate;
125 class VpnServiceProxy; 126 class VpnServiceProxy;
126 class WebContents; 127 class WebContents;
127 class WebContentsViewDelegate; 128 class WebContentsViewDelegate;
128 struct MainFunctionParams; 129 struct MainFunctionParams;
129 struct OpenURLParams; 130 struct OpenURLParams;
130 struct Referrer; 131 struct Referrer;
131 struct WebPreferences; 132 struct WebPreferences;
132 133
133 // Embedder API (or SPI) for participating in browser logic, to be implemented 134 // Embedder API (or SPI) for participating in browser logic, to be implemented
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 BrowserContext* browser_context, 450 BrowserContext* browser_context,
450 const GURL& site, 451 const GURL& site,
451 bool can_be_default, 452 bool can_be_default,
452 std::string* partition_domain, 453 std::string* partition_domain,
453 std::string* partition_name, 454 std::string* partition_name,
454 bool* in_memory); 455 bool* in_memory);
455 456
456 // Create and return a new quota permission context. 457 // Create and return a new quota permission context.
457 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 458 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
458 459
459 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for 460 // Allows the embedder to provide settings that determine the amount
460 // temporary storage. 461 // of disk space that may be used by content facing storage apis like
461 virtual std::unique_ptr<storage::QuotaEvictionPolicy> 462 // IndexedDatabase and ServiceWorker::CacheStorage and others.
462 GetTemporaryStorageEvictionPolicy(BrowserContext* context); 463 virtual void GetQuotaSettings(
464 content::BrowserContext* context,
465 content::StoragePartition* partition,
466 const storage::OptionalQuotaSettingsCallback& callback);
463 467
464 // Informs the embedder that a certificate error has occured. If 468 // Informs the embedder that a certificate error has occured. If
465 // |overridable| is true and if |strict_enforcement| is false, the user 469 // |overridable| is true and if |strict_enforcement| is false, the user
466 // can ignore the error and continue. The embedder can call the callback 470 // can ignore the error and continue. The embedder can call the callback
467 // asynchronously. 471 // asynchronously.
468 virtual void AllowCertificateError( 472 virtual void AllowCertificateError(
469 WebContents* web_contents, 473 WebContents* web_contents,
470 int cert_error, 474 int cert_error,
471 const net::SSLInfo& ssl_info, 475 const net::SSLInfo& ssl_info,
472 const GURL& request_url, 476 const GURL& request_url,
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 // by |render_frame_host|. This may be called multiple times if there is more 793 // by |render_frame_host|. This may be called multiple times if there is more
790 // than one source candidate in the same render frame. 794 // than one source candidate in the same render frame.
791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 795 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
792 media::mojom::RemotingSourcePtr source, 796 media::mojom::RemotingSourcePtr source,
793 media::mojom::RemoterRequest request) {} 797 media::mojom::RemoterRequest request) {}
794 }; 798 };
795 799
796 } // namespace content 800 } // namespace content
797 801
798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 802 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698