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

Unified Diff: webkit/quota/quota_temporary_storage_evictor.h

Issue 7002024: Implement QuotaTemporaryStorageEvictor. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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
Index: webkit/quota/quota_temporary_storage_evictor.h
diff --git a/webkit/quota/quota_temporary_storage_evictor.h b/webkit/quota/quota_temporary_storage_evictor.h
new file mode 100644
index 0000000000000000000000000000000000000000..34db6074b56dcb4798c3acf4ec085b83260ae145
--- /dev/null
+++ b/webkit/quota/quota_temporary_storage_evictor.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
+#define WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_
+#pragma once
+
+#include "base/message_loop.h"
+#include "base/message_loop_proxy.h"
+#include "webkit/quota/quota_task.h"
+
+class GURL;
+
+namespace quota {
+
+class QuotaTemporaryStorageEvictor {
+ public:
+ QuotaTemporaryStorageEvictor(
+ QuotaManager* manager,
+ QuotaDatabase* database,
+ scoped_refptr<base::MessageLoopProxy> db_message_loop);
+ virtual ~QuotaTemporaryStorageEvictor();
+
+ virtual void Start();
kinuko 2011/05/11 07:49:30 does this need to be virtual?
Dai Mikurube (NOT FULLTIME) 2011/05/11 11:23:50 Exactly. Removed virtual.
+
+ private:
+ class EvictTask;
+
+ QuotaManager* manager_;
+ QuotaDatabase* database_;
+ scoped_refptr<base::MessageLoopProxy> db_message_loop_;
+
+ DISALLOW_COPY_AND_ASSIGN(QuotaTemporaryStorageEvictor);
+};
+
+} // namespace quota
+
+#endif // WEBKIT_QUOTA_QUOTA_TEMPORARY_STORAGE_EVICTOR_H_

Powered by Google App Engine
This is Rietveld 408576698