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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index c5a28e034f9d8490009131b955461f2cb159151b..28fa2009515e39a396af096f20571439813e7e7d 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -47,7 +47,7 @@ class FileWriterDelegate;
}
namespace net {
-class URLRequestContext;
+class URLRequestContextGetter;
}
namespace content {
@@ -375,7 +375,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
IndexedDBFactory* indexed_db_factory,
const url::Origin& origin,
const base::FilePath& path_base,
- net::URLRequestContext* request_context,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
IndexedDBDataLossInfo* data_loss_info,
bool* disk_full,
base::SequencedTaskRunner* task_runner,
@@ -385,7 +385,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
IndexedDBFactory* indexed_db_factory,
const url::Origin& origin,
const base::FilePath& path_base,
- net::URLRequestContext* request_context,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
IndexedDBDataLossInfo* data_loss_info,
bool* disk_full,
LevelDBFactory* leveldb_factory,
@@ -565,13 +565,14 @@ class CONTENT_EXPORT IndexedDBBackingStore
protected:
friend class base::RefCounted<IndexedDBBackingStore>;
- IndexedDBBackingStore(IndexedDBFactory* indexed_db_factory,
- const url::Origin& origin,
- const base::FilePath& blob_path,
- net::URLRequestContext* request_context,
- std::unique_ptr<LevelDBDatabase> db,
- std::unique_ptr<LevelDBComparator> comparator,
- base::SequencedTaskRunner* task_runner);
+ IndexedDBBackingStore(
+ IndexedDBFactory* indexed_db_factory,
+ const url::Origin& origin,
+ const base::FilePath& blob_path,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ std::unique_ptr<LevelDBDatabase> db,
+ std::unique_ptr<LevelDBComparator> comparator,
+ base::SequencedTaskRunner* task_runner);
virtual ~IndexedDBBackingStore();
bool is_incognito() const { return !indexed_db_factory_; }
@@ -602,7 +603,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
IndexedDBFactory* indexed_db_factory,
const url::Origin& origin,
const base::FilePath& blob_path,
- net::URLRequestContext* request_context,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
std::unique_ptr<LevelDBDatabase> db,
std::unique_ptr<LevelDBComparator> comparator,
base::SequencedTaskRunner* task_runner,
@@ -652,7 +653,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
// provides for future flexibility.
const std::string origin_identifier_;
- net::URLRequestContext* request_context_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
std::set<int> child_process_ids_granted_;
std::map<std::string, std::unique_ptr<BlobChangeRecord>> incognito_blob_map_;
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698