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

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

Issue 2172863002: [IndexedDB]: Passing URLRequestContextGetter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a few missed merge conflicts. 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 edab2d82afbef16934e615e05dabbaadd1ef1866..9190da10c617e640f88b456054a5bcd78bdbf782 100644
--- a/content/browser/indexed_db/indexed_db_factory_impl.h
+++ b/content/browser/indexed_db/indexed_db_factory_impl.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <map>
+#include <memory>
#include <set>
#include <string>
@@ -34,18 +35,20 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks,
const url::Origin& origin,
const base::FilePath& data_directory,
- net::URLRequestContext* request_context) override;
+ scoped_refptr<net::URLRequestContextGetter>
+ request_context_getter) override;
void Open(const base::string16& name,
std::unique_ptr<IndexedDBPendingConnection> connection,
- net::URLRequestContext* request_context,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
const url::Origin& origin,
const base::FilePath& data_directory) override;
- void DeleteDatabase(const base::string16& name,
- net::URLRequestContext* request_context,
- scoped_refptr<IndexedDBCallbacks> callbacks,
- const url::Origin& origin,
- const base::FilePath& data_directory) override;
+ void DeleteDatabase(
+ const base::string16& name,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ scoped_refptr<IndexedDBCallbacks> callbacks,
+ const url::Origin& origin,
+ const base::FilePath& data_directory) override;
void HandleBackingStoreFailure(const url::Origin& origin) override;
void HandleBackingStoreCorruption(
@@ -75,7 +78,7 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
scoped_refptr<IndexedDBBackingStore> OpenBackingStore(
const url::Origin& origin,
const base::FilePath& data_directory,
- net::URLRequestContext* request_context,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
IndexedDBDataLossInfo* data_loss_info,
bool* disk_full,
leveldb::Status* s) override;
@@ -83,7 +86,7 @@ class CONTENT_EXPORT IndexedDBFactoryImpl : public IndexedDBFactory {
scoped_refptr<IndexedDBBackingStore> OpenBackingStoreHelper(
const url::Origin& origin,
const base::FilePath& data_directory,
- net::URLRequestContext* request_context,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
IndexedDBDataLossInfo* data_loss_info,
bool* disk_full,
bool first_time,
« 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