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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/engine/common/blimp_browser_context.h" 5 #include "blimp/engine/common/blimp_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/nix/xdg_util.h" 10 #include "base/nix/xdg_util.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 content::DownloadManagerDelegate* 95 content::DownloadManagerDelegate*
96 BlimpBrowserContext::GetDownloadManagerDelegate() { 96 BlimpBrowserContext::GetDownloadManagerDelegate() {
97 return nullptr; 97 return nullptr;
98 } 98 }
99 99
100 net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() { 100 net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() {
101 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 101 return GetDefaultStoragePartition(this)->GetURLRequestContext();
102 } 102 }
103 103
104 const scoped_refptr<BlimpURLRequestContextGetter>&
105 BlimpBrowserContext::CreateRequestContext(
106 content::ProtocolHandlerMap* protocol_handlers,
107 content::URLRequestInterceptorScopedVector request_interceptors) {
108 DCHECK(!resource_context_->url_request_context_getter());
109 // net_log_ is owned by BrowserMainParts.
110 resource_context_->set_url_request_context_getter(
111 new BlimpURLRequestContextGetter(
112 ignore_certificate_errors_, GetPath(),
113 content::BrowserThread::GetMessageLoopProxyForThread(
114 content::BrowserThread::IO),
115 content::BrowserThread::GetMessageLoopProxyForThread(
116 content::BrowserThread::FILE),
117 protocol_handlers, std::move(request_interceptors), net_log_));
118 return resource_context_->url_request_context_getter();
119 }
120
121 net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() { 104 net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() {
122 return GetRequestContext(); 105 return GetRequestContext();
123 } 106 }
124 107
125 net::URLRequestContextGetter* 108 net::URLRequestContextGetter*
126 BlimpBrowserContext::GetMediaRequestContextForRenderProcess( 109 BlimpBrowserContext::GetMediaRequestContextForRenderProcess(
127 int renderer_child_id) { 110 int renderer_child_id) {
128 return GetRequestContext(); 111 return GetRequestContext();
129 } 112 }
130 113
(...skipping 28 matching lines...) Expand all
159 if (!permission_manager_) 142 if (!permission_manager_)
160 permission_manager_.reset(new BlimpPermissionManager()); 143 permission_manager_.reset(new BlimpPermissionManager());
161 return permission_manager_.get(); 144 return permission_manager_.get();
162 } 145 }
163 146
164 content::BackgroundSyncController* 147 content::BackgroundSyncController*
165 BlimpBrowserContext::GetBackgroundSyncController() { 148 BlimpBrowserContext::GetBackgroundSyncController() {
166 return nullptr; 149 return nullptr;
167 } 150 }
168 151
152 net::URLRequestContextGetter* BlimpBrowserContext::CreateRequestContext(
153 content::ProtocolHandlerMap* protocol_handlers,
154 content::URLRequestInterceptorScopedVector request_interceptors) {
155 DCHECK(!resource_context_->url_request_context_getter());
156 // net_log_ is owned by BrowserMainParts.
157 resource_context_->set_url_request_context_getter(
158 new BlimpURLRequestContextGetter(
159 ignore_certificate_errors_, GetPath(),
160 content::BrowserThread::GetMessageLoopProxyForThread(
161 content::BrowserThread::IO),
162 content::BrowserThread::GetMessageLoopProxyForThread(
163 content::BrowserThread::FILE),
164 protocol_handlers, std::move(request_interceptors), net_log_));
165 return resource_context_->url_request_context_getter().get();
166 }
167
168 net::URLRequestContextGetter*
169 BlimpBrowserContext::CreateRequestContextForStoragePartition(
170 const base::FilePath& partition_path,
171 bool in_memory,
172 content::ProtocolHandlerMap* protocol_handlers,
173 content::URLRequestInterceptorScopedVector request_interceptors) {
174 return nullptr;
175 }
176
169 } // namespace engine 177 } // namespace engine
170 } // namespace blimp 178 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698