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

Unified Diff: content/browser/indexed_db/indexed_db_fake_backing_store.h

Issue 203833003: Add the IndexedDBActiveBlobRegistry, currently unused, to enable future blob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix override mismatch Created 6 years, 9 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: content/browser/indexed_db/indexed_db_fake_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_fake_backing_store.h b/content/browser/indexed_db/indexed_db_fake_backing_store.h
index 113a0567093f212338b0f5832f646aaa4ebfdaf3..f4f67d7ae54bf6700a01a25e1b812f5a71fbe1f0 100644
--- a/content/browser/indexed_db/indexed_db_fake_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_fake_backing_store.h
@@ -9,14 +9,19 @@
#include "content/browser/indexed_db/indexed_db_backing_store.h"
+namespace base {
+class TaskRunner;
+}
+
namespace content {
+class IndexedDBFactory;
+
class IndexedDBFakeBackingStore : public IndexedDBBackingStore {
public:
- IndexedDBFakeBackingStore()
- : IndexedDBBackingStore(GURL("http://localhost:81"),
- scoped_ptr<LevelDBDatabase>(),
- scoped_ptr<LevelDBComparator>()) {}
+ IndexedDBFakeBackingStore();
+ IndexedDBFakeBackingStore(IndexedDBFactory* factory,
+ base::TaskRunner* task_runner);
virtual std::vector<base::string16> GetDatabaseNames() OVERRIDE;
virtual leveldb::Status GetIDBDatabaseMetaData(const base::string16& name,
IndexedDBDatabaseMetadata*,
@@ -83,6 +88,7 @@ class IndexedDBFakeBackingStore : public IndexedDBBackingStore {
const IndexedDBKey&,
const RecordIdentifier&)
OVERRIDE;
+ virtual void ReportBlobUnused(int64 database_id, int64 blob_key) OVERRIDE;
virtual scoped_ptr<Cursor> OpenObjectStoreKeyCursor(
Transaction* transaction,
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('k') | content/browser/indexed_db/indexed_db_fake_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698