| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |