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

Unified Diff: blimp/engine/common/blimp_browser_context.cc

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: blimp/engine/common/blimp_browser_context.cc
diff --git a/blimp/engine/common/blimp_browser_context.cc b/blimp/engine/common/blimp_browser_context.cc
index f91426a40ec4a64bec4b241298435393d10e30db..98a1201f24a78568bf2e1dbe7ceeb9c9f794a145 100644
--- a/blimp/engine/common/blimp_browser_context.cc
+++ b/blimp/engine/common/blimp_browser_context.cc
@@ -101,23 +101,6 @@ net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() {
return GetDefaultStoragePartition(this)->GetURLRequestContext();
}
-const scoped_refptr<BlimpURLRequestContextGetter>&
-BlimpBrowserContext::CreateRequestContext(
- content::ProtocolHandlerMap* protocol_handlers,
- content::URLRequestInterceptorScopedVector request_interceptors) {
- DCHECK(!resource_context_->url_request_context_getter());
- // net_log_ is owned by BrowserMainParts.
- resource_context_->set_url_request_context_getter(
- new BlimpURLRequestContextGetter(
- ignore_certificate_errors_, GetPath(),
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::IO),
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::FILE),
- protocol_handlers, std::move(request_interceptors), net_log_));
- return resource_context_->url_request_context_getter();
-}
-
net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() {
return GetRequestContext();
}
@@ -166,5 +149,30 @@ BlimpBrowserContext::GetBackgroundSyncController() {
return nullptr;
}
+net::URLRequestContextGetter* BlimpBrowserContext::CreateRequestContext(
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::URLRequestInterceptorScopedVector request_interceptors) {
+ DCHECK(!resource_context_->url_request_context_getter());
+ // net_log_ is owned by BrowserMainParts.
+ resource_context_->set_url_request_context_getter(
+ new BlimpURLRequestContextGetter(
+ ignore_certificate_errors_, GetPath(),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::IO),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE),
+ protocol_handlers, std::move(request_interceptors), net_log_));
+ return resource_context_->url_request_context_getter().get();
+}
+
+net::URLRequestContextGetter*
+BlimpBrowserContext::CreateRequestContextForStoragePartition(
+ const base::FilePath& partition_path,
+ bool in_memory,
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::URLRequestInterceptorScopedVector request_interceptors) {
+ return nullptr;
+}
+
} // namespace engine
} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698