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

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: poolSize Created 4 years, 4 months 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/mojo_application_info.h" 24 #include "content/public/common/mojo_application_info.h"
25 #include "content/public/common/resource_type.h" 25 #include "content/public/common/resource_type.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/window_open_disposition.h" 34 #include "ui/base/window_open_disposition.h"
34 35
35 #if defined(OS_POSIX) && !defined(OS_MACOSX) 36 #if defined(OS_POSIX) && !defined(OS_MACOSX)
36 #include "base/posix/global_descriptors.h" 37 #include "base/posix/global_descriptors.h"
37 #endif 38 #endif
38 39
39 #if defined(OS_POSIX) 40 #if defined(OS_POSIX)
40 #include "content/public/browser/file_descriptor_info.h" 41 #include "content/public/browser/file_descriptor_info.h"
41 #endif 42 #endif
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 bool* in_memory); 451 bool* in_memory);
451 452
452 // Create and return a new quota permission context. 453 // Create and return a new quota permission context.
453 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); 454 virtual QuotaPermissionContext* CreateQuotaPermissionContext();
454 455
455 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for 456 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for
456 // temporary storage. 457 // temporary storage.
457 virtual std::unique_ptr<storage::QuotaEvictionPolicy> 458 virtual std::unique_ptr<storage::QuotaEvictionPolicy>
458 GetTemporaryStorageEvictionPolicy(BrowserContext* context); 459 GetTemporaryStorageEvictionPolicy(BrowserContext* context);
459 460
461 virtual storage::GetTemporaryStorageConfigurationFunc
462 GetTemporaryStorageConfigurationFunction(BrowserContext* context);
463
460 // Informs the embedder that a certificate error has occured. If 464 // Informs the embedder that a certificate error has occured. If
461 // |overridable| is true and if |strict_enforcement| is false, the user 465 // |overridable| is true and if |strict_enforcement| is false, the user
462 // can ignore the error and continue. The embedder can call the callback 466 // can ignore the error and continue. The embedder can call the callback
463 // asynchronously. If |result| is not set to 467 // asynchronously. If |result| is not set to
464 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled 468 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled
465 // or denied immediately, and the callback won't be run. 469 // or denied immediately, and the callback won't be run.
466 virtual void AllowCertificateError(WebContents* web_contents, 470 virtual void AllowCertificateError(WebContents* web_contents,
467 int cert_error, 471 int cert_error,
468 const net::SSLInfo& ssl_info, 472 const net::SSLInfo& ssl_info,
469 const GURL& request_url, 473 const GURL& request_url,
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 779 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
776 // implementation. Return nullptr to disable external surface video. 780 // implementation. Return nullptr to disable external surface video.
777 virtual ExternalVideoSurfaceContainer* 781 virtual ExternalVideoSurfaceContainer*
778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 782 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
779 #endif 783 #endif
780 }; 784 };
781 785
782 } // namespace content 786 } // namespace content
783 787
784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 788 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698