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

Side by Side Diff: blimp/engine/common/blimp_browser_context.cc

Issue 1864163003: Add new system url request context getter to the blimp engine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment updates and syncing ptr migration. Includes rebase. 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
« no previous file with comments | « blimp/engine/common/blimp_browser_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 bool BlimpBrowserContext::IsOffTheRecord() const { 91 bool BlimpBrowserContext::IsOffTheRecord() const {
92 return off_the_record_; 92 return off_the_record_;
93 } 93 }
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*
101 BlimpBrowserContext::GetSystemRequestContextGetter() {
102 if (!system_context_getter_) {
103 system_context_getter_ = new BlimpSystemURLRequestContextGetter();
104 }
105 return system_context_getter_.get();
106 }
107
100 net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() { 108 net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() {
101 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 109 return GetDefaultStoragePartition(this)->GetURLRequestContext();
102 } 110 }
103 111
104 net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() { 112 net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() {
105 return GetRequestContext(); 113 return GetRequestContext();
106 } 114 }
107 115
108 net::URLRequestContextGetter* 116 net::URLRequestContextGetter*
109 BlimpBrowserContext::GetMediaRequestContextForRenderProcess( 117 BlimpBrowserContext::GetMediaRequestContextForRenderProcess(
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 BlimpBrowserContext::CreateRequestContextForStoragePartition( 177 BlimpBrowserContext::CreateRequestContextForStoragePartition(
170 const base::FilePath& partition_path, 178 const base::FilePath& partition_path,
171 bool in_memory, 179 bool in_memory,
172 content::ProtocolHandlerMap* protocol_handlers, 180 content::ProtocolHandlerMap* protocol_handlers,
173 content::URLRequestInterceptorScopedVector request_interceptors) { 181 content::URLRequestInterceptorScopedVector request_interceptors) {
174 return nullptr; 182 return nullptr;
175 } 183 }
176 184
177 } // namespace engine 185 } // namespace engine
178 } // namespace blimp 186 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/common/blimp_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698