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

Unified Diff: content/browser/indexed_db/indexed_db_factory.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.h
diff --git a/content/browser/indexed_db/indexed_db_factory.h b/content/browser/indexed_db/indexed_db_factory.h
index fd60a525a1b9107b1eb09e9a44fae3199476c156..40c3765b3e5d636c67971493320b0b6fc5b98e96 100644
--- a/content/browser/indexed_db/indexed_db_factory.h
+++ b/content/browser/indexed_db/indexed_db_factory.h
@@ -25,7 +25,7 @@
#include "url/origin.h"
namespace net {
-class URLRequestContext;
+class URLRequestContextGetter;
}
namespace content {
@@ -44,21 +44,24 @@ class CONTENT_EXPORT IndexedDBFactory
virtual void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier,
bool forced_close) = 0;
- virtual void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks,
- const url::Origin& origin,
- const base::FilePath& data_directory,
- net::URLRequestContext* request_context) = 0;
- virtual void Open(const base::string16& name,
- std::unique_ptr<IndexedDBPendingConnection> connection,
- net::URLRequestContext* request_context,
- const url::Origin& origin,
- const base::FilePath& data_directory) = 0;
-
- virtual void DeleteDatabase(const base::string16& name,
- net::URLRequestContext* request_context,
- scoped_refptr<IndexedDBCallbacks> callbacks,
- const url::Origin& origin,
- const base::FilePath& data_directory) = 0;
+ virtual void GetDatabaseNames(
+ scoped_refptr<IndexedDBCallbacks> callbacks,
+ const url::Origin& origin,
+ const base::FilePath& data_directory,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter) = 0;
+ virtual void Open(
+ const base::string16& name,
+ std::unique_ptr<IndexedDBPendingConnection> connection,
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter,
+ const url::Origin& origin,
+ const base::FilePath& data_directory) = 0;
+
+ virtual 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) = 0;
virtual void HandleBackingStoreFailure(const url::Origin& origin) = 0;
virtual void HandleBackingStoreCorruption(
@@ -92,7 +95,7 @@ class CONTENT_EXPORT IndexedDBFactory
virtual 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* status) = 0;
@@ -100,7 +103,7 @@ class CONTENT_EXPORT IndexedDBFactory
virtual 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_dispatcher_host.cc ('k') | content/browser/indexed_db/indexed_db_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698