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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.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_dispatcher_host.h
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.h b/content/browser/indexed_db/indexed_db_dispatcher_host.h
index 11a2f4e54bbf159fe5b8d1b809a237d784280cd2..4ff5bd486d53bd7b5523c23805c634740456b588 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.h
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <string>
#include <utility>
#include <vector>
@@ -66,10 +67,6 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
net::URLRequestContextGetter* request_context_getter,
IndexedDBContextImpl* indexed_db_context,
ChromeBlobStorageContext* blob_storage_context);
- IndexedDBDispatcherHost(int ipc_process_id,
- net::URLRequestContext* request_context,
- IndexedDBContextImpl* indexed_db_context,
- ChromeBlobStorageContext* blob_storage_context);
static ::IndexedDBDatabaseMetadata ConvertMetadata(
const content::IndexedDBDatabaseMetadata& metadata);
@@ -79,7 +76,6 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
const IndexedDBObservation* observation);
// BrowserMessageFilter implementation.
- void OnChannelConnected(int32_t peer_pid) override;
void OnChannelClosing() override;
void OnDestruct() const override;
base::TaskRunner* OverrideTaskRunnerForMessage(
@@ -298,10 +294,7 @@ class IndexedDBDispatcherHost : public BrowserMessageFilter {
void ResetDispatcherHosts();
void DropBlobData(const std::string& uuid);
- // The getter holds the context until OnChannelConnected() can be called from
- // the IO thread, which will extract the net::URLRequestContext from it.
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
- net::URLRequestContext* request_context_;
scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;

Powered by Google App Engine
This is Rietveld 408576698