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

Unified Diff: webkit/quota/quota_manager.cc

Issue 7029009: Add an interface QuotaEvictionHandler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Just rebased. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/quota/quota_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_manager.cc
diff --git a/webkit/quota/quota_manager.cc b/webkit/quota/quota_manager.cc
index 832d8e4f42b1c9cc88070d096f90ce44f967b650..01f9c75b989cda7a84d7ca6378ca8b0ef2606005 100644
--- a/webkit/quota/quota_manager.cc
+++ b/webkit/quota/quota_manager.cc
@@ -690,20 +690,6 @@ void QuotaManager::NotifyOriginNoLongerInUse(const GURL& origin) {
origins_in_use_.erase(origin);
}
-void QuotaManager::GetLRUOrigin(
- StorageType type,
- GetLRUOriginCallback* callback) {
- LazyInitialize();
- if (db_disabled_) {
- callback->Run(GURL());
- delete callback;
- return;
- }
- scoped_refptr<GetLRUOriginTask> task(new GetLRUOriginTask(
- this, database_.get(), db_thread_, type, origins_in_use_, callback));
- task->Start();
-}
-
UsageTracker* QuotaManager::GetUsageTracker(StorageType type) const {
switch (type) {
case kStorageTypeTemporary:
@@ -735,6 +721,32 @@ void QuotaManager::DeleteOriginFromDatabase(
task->Start();
}
+void QuotaManager::GetLRUOrigin(
+ StorageType type,
+ GetLRUOriginCallback* callback) {
+ LazyInitialize();
+ if (db_disabled_) {
+ callback->Run(GURL());
+ delete callback;
+ return;
+ }
+ scoped_refptr<GetLRUOriginTask> task(new GetLRUOriginTask(
+ this, database_.get(), db_thread_, type, origins_in_use_, callback));
+ task->Start();
+}
+
+void QuotaManager::EvictOriginData(
+ const GURL& origin,
+ StorageType type,
+ EvictOriginDataCallback* callback) {
+ // TODO(dmikurube): Implement it.
+}
+
+void QuotaManager::GetUsageAndQuotaForEviction(
+ GetUsageAndQuotaForEvictionCallback* callback) {
+ // TODO(dmikurube): Implement it.
+}
+
void QuotaManager::DeleteOnCorrectThread() const {
if (!io_thread_->BelongsToCurrentThread()) {
io_thread_->DeleteSoon(FROM_HERE, this);
« no previous file with comments | « webkit/quota/quota_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698