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

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

Issue 1321733004: Use the site engagement eviction policy for temporary storage eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_eviction_policy
Patch Set: Created 5 years, 3 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 class URLRequest; 65 class URLRequest;
66 class URLRequestContext; 66 class URLRequestContext;
67 class URLRequestContextGetter; 67 class URLRequestContextGetter;
68 class X509Certificate; 68 class X509Certificate;
69 } 69 }
70 70
71 namespace sandbox { 71 namespace sandbox {
72 class TargetPolicy; 72 class TargetPolicy;
73 } 73 }
74 74
75 namespace storage {
76 class QuotaEvictionPolicy;
77 }
78
75 namespace ui { 79 namespace ui {
76 class SelectFilePolicy; 80 class SelectFilePolicy;
77 } 81 }
78 82
79 namespace storage { 83 namespace storage {
80 class ExternalMountPoints; 84 class ExternalMountPoints;
81 class FileSystemBackend; 85 class FileSystemBackend;
82 } 86 }
83 87
84 namespace content { 88 namespace content {
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 const base::FilePath& storage_partition_path, 569 const base::FilePath& storage_partition_path,
566 ScopedVector<storage::FileSystemBackend>* additional_backends) {} 570 ScopedVector<storage::FileSystemBackend>* additional_backends) {}
567 571
568 // Allows an embedder to return its own LocationProvider implementation. 572 // Allows an embedder to return its own LocationProvider implementation.
569 // Return nullptr to use the default one for the platform to be created. 573 // Return nullptr to use the default one for the platform to be created.
570 // FYI: Used by an external project; please don't remove. 574 // FYI: Used by an external project; please don't remove.
571 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more 575 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more
572 // information. 576 // information.
573 virtual LocationProvider* OverrideSystemLocationProvider(); 577 virtual LocationProvider* OverrideSystemLocationProvider();
574 578
579 virtual storage::QuotaEvictionPolicy* GetTemporaryStorageEvictionPolicy(
580 BrowserContext* browser_context);
581
575 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. 582 // Creates a new DevToolsManagerDelegate. The caller owns the returned value.
576 // It's valid to return nullptr. 583 // It's valid to return nullptr.
577 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); 584 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate();
578 585
579 // Creates a new TracingDelegate. The caller owns the returned value. 586 // Creates a new TracingDelegate. The caller owns the returned value.
580 // It's valid to return nullptr. 587 // It's valid to return nullptr.
581 virtual TracingDelegate* GetTracingDelegate(); 588 virtual TracingDelegate* GetTracingDelegate();
582 589
583 // Returns true if NPAPI plugins are enabled. 590 // Returns true if NPAPI plugins are enabled.
584 virtual bool IsNPAPIEnabled(); 591 virtual bool IsNPAPIEnabled();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 692 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
686 // implementation. Return nullptr to disable external surface video. 693 // implementation. Return nullptr to disable external surface video.
687 virtual ExternalVideoSurfaceContainer* 694 virtual ExternalVideoSurfaceContainer*
688 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 695 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
689 #endif 696 #endif
690 }; 697 };
691 698
692 } // namespace content 699 } // namespace content
693 700
694 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 701 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698