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

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: comments Created 4 years, 1 month 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 11 matching lines...) Expand all
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 class NavigationUIData; 113 class NavigationUIData;
113 class PlatformNotificationService; 114 class PlatformNotificationService;
114 class PresentationServiceDelegate; 115 class PresentationServiceDelegate;
115 class QuotaPermissionContext; 116 class QuotaPermissionContext;
116 class RenderFrameHost; 117 class RenderFrameHost;
117 class RenderProcessHost; 118 class RenderProcessHost;
118 class RenderViewHost; 119 class RenderViewHost;
119 class ResourceContext; 120 class ResourceContext;
120 class SiteInstance; 121 class SiteInstance;
121 class SpeechRecognitionManagerDelegate; 122 class SpeechRecognitionManagerDelegate;
123 class StoragePartition;
122 class TracingDelegate; 124 class TracingDelegate;
123 class VpnServiceProxy; 125 class VpnServiceProxy;
124 class WebContents; 126 class WebContents;
125 class WebContentsViewDelegate; 127 class WebContentsViewDelegate;
126 struct MainFunctionParams; 128 struct MainFunctionParams;
127 struct OpenURLParams; 129 struct OpenURLParams;
128 struct Referrer; 130 struct Referrer;
129 struct WebPreferences; 131 struct WebPreferences;
130 132
131 // 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 bool* in_memory); 446 bool* in_memory);
445 447
446 // Create and return a new quota permission context. 448 // Create and return a new quota permission context.
447 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 449 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
448 450
449 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for 451 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for
450 // temporary storage. 452 // temporary storage.
451 virtual std::unique_ptr<storage::QuotaEvictionPolicy> 453 virtual std::unique_ptr<storage::QuotaEvictionPolicy>
452 GetTemporaryStorageEvictionPolicy(BrowserContext* context); 454 GetTemporaryStorageEvictionPolicy(BrowserContext* context);
453 455
456 virtual void GetQuotaSettings(
457 content::BrowserContext* context,
458 content::StoragePartition* partition,
459 const storage::OptionalQuotaSettingsCallback& callback);
460
454 // Informs the embedder that a certificate error has occured. If 461 // Informs the embedder that a certificate error has occured. If
455 // |overridable| is true and if |strict_enforcement| is false, the user 462 // |overridable| is true and if |strict_enforcement| is false, the user
456 // can ignore the error and continue. The embedder can call the callback 463 // can ignore the error and continue. The embedder can call the callback
457 // asynchronously. 464 // asynchronously.
458 virtual void AllowCertificateError( 465 virtual void AllowCertificateError(
459 WebContents* web_contents, 466 WebContents* web_contents,
460 int cert_error, 467 int cert_error,
461 const net::SSLInfo& ssl_info, 468 const net::SSLInfo& ssl_info,
462 const GURL& request_url, 469 const GURL& request_url,
463 ResourceType resource_type, 470 ResourceType resource_type,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 #endif 778 #endif
772 779
773 // Returns an instance of MemoryCoordinatorDelegate. 780 // Returns an instance of MemoryCoordinatorDelegate.
774 virtual std::unique_ptr<MemoryCoordinatorDelegate> 781 virtual std::unique_ptr<MemoryCoordinatorDelegate>
775 GetMemoryCoordinatorDelegate(); 782 GetMemoryCoordinatorDelegate();
776 }; 783 };
777 784
778 } // namespace content 785 } // namespace content
779 786
780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698