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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 years, 4 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_factory_impl.h
diff --git a/content/browser/indexed_db/indexed_db_factory_impl.h b/content/browser/indexed_db/indexed_db_factory_impl.h
index 9190da10c617e640f88b456054a5bcd78bdbf782..837a9311c073f691ee2f50344202792311ed73d8 100644
--- a/content/browser/indexed_db/indexed_db_factory_impl.h
+++ b/content/browser/indexed_db/indexed_db_factory_impl.h
@@ -32,8 +32,7 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier,
bool forced_close) override;
- void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks,
- const url::Origin& origin,
+ void GetDatabaseNames(const url::Origin& origin,
const base::FilePath& data_directory,
scoped_refptr<net::URLRequestContextGetter>
request_context_getter) override;
@@ -46,7 +45,7 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
void DeleteDatabase(
const base::string16& name,
scoped_refptr<net::URLRequestContextGetter> request_context_getter,
- scoped_refptr<IndexedDBCallbacks> callbacks,
+ std::unique_ptr<IndexedDBPendingDelete> pending_delete,
const url::Origin& origin,
const base::FilePath& data_directory) override;
@@ -72,6 +71,8 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
size_t GetConnectionCount(const url::Origin& origin) const override;
+ IndexedDBContext* context() const override;
+
protected:
~IndexedDBFactoryImpl() override;
@@ -94,7 +95,6 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
void ReleaseBackingStore(const url::Origin& origin, bool immediate);
void CloseBackingStore(const url::Origin& origin);
- IndexedDBContextImpl* context() const { return context_; }
private:
FRIEND_TEST_ALL_PREFIXES(IndexedDBFactoryTest,
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory.h ('k') | content/browser/indexed_db/indexed_db_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698