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

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

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
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_fake_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_fake_backing_store.cc b/content/browser/indexed_db/indexed_db_fake_backing_store.cc
index 18ca50cbab595363fa726a044dda433b94378886..a40e5760e55dd697116bfbced42099821b7b79e2 100644
--- a/content/browser/indexed_db/indexed_db_fake_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_fake_backing_store.cc
@@ -8,6 +8,22 @@
namespace content {
+IndexedDBFakeBackingStore::IndexedDBFakeBackingStore()
+ : IndexedDBBackingStore(NULL,
+ GURL("http://localhost:81"),
+ scoped_ptr<LevelDBDatabase>(),
+ scoped_ptr<LevelDBComparator>(),
+ NULL) {}
+
+IndexedDBFakeBackingStore::IndexedDBFakeBackingStore(
+ IndexedDBFactory* factory,
+ base::TaskRunner* task_runner)
+ : IndexedDBBackingStore(factory,
+ GURL("http://localhost:81"),
+ scoped_ptr<LevelDBDatabase>(),
+ scoped_ptr<LevelDBComparator>(),
+ task_runner) {}
+
IndexedDBFakeBackingStore::~IndexedDBFakeBackingStore() {}
std::vector<base::string16> IndexedDBFakeBackingStore::GetDatabaseNames() {
@@ -113,6 +129,9 @@ leveldb::Status IndexedDBFakeBackingStore::PutIndexDataForRecord(
return leveldb::Status::IOError("test error");
}
+void IndexedDBFakeBackingStore::ReportBlobUnused(int64 database_id,
+ int64 blob_key) {}
+
scoped_ptr<IndexedDBBackingStore::Cursor>
IndexedDBFakeBackingStore::OpenObjectStoreKeyCursor(
IndexedDBBackingStore::Transaction* transaction,
« no previous file with comments | « content/browser/indexed_db/indexed_db_fake_backing_store.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698