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

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, 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for
450 // temporary storage. 451 // temporary storage.
451 virtual std::unique_ptr<storage::QuotaEvictionPolicy> 452 virtual std::unique_ptr<storage::QuotaEvictionPolicy>
452 GetTemporaryStorageEvictionPolicy(BrowserContext* context); 453 GetTemporaryStorageEvictionPolicy(BrowserContext* context);
453 454
455 virtual void GetQuotaSettings(
456 content::BrowserContext* context,
457 const base::FilePath& partition_path,
458 bool is_incognito,
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