Chromium Code Reviews| 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* BlimpBrowserContext::GetSystemRequestContext() { | |
| 101 system_context_getter_ = new BlimpSystemURLRequestContextGetter(); | |
|
mmenke
2016/04/06 20:44:56
if (!system_context_getter_)
system_context_gett
Jess
2016/04/06 21:00:52
Done.
| |
| 102 return system_context_getter_.get(); | |
| 103 } | |
| 104 | |
| 100 net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() { | 105 net::URLRequestContextGetter* BlimpBrowserContext::GetRequestContext() { |
| 101 return GetDefaultStoragePartition(this)->GetURLRequestContext(); | 106 return GetDefaultStoragePartition(this)->GetURLRequestContext(); |
| 102 } | 107 } |
| 103 | 108 |
| 104 const scoped_refptr<BlimpURLRequestContextGetter>& | 109 const scoped_refptr<BlimpURLRequestContextGetter>& |
| 105 BlimpBrowserContext::CreateRequestContext( | 110 BlimpBrowserContext::CreateRequestContext( |
| 106 content::ProtocolHandlerMap* protocol_handlers, | 111 content::ProtocolHandlerMap* protocol_handlers, |
| 107 content::URLRequestInterceptorScopedVector request_interceptors) { | 112 content::URLRequestInterceptorScopedVector request_interceptors) { |
| 108 DCHECK(!resource_context_->url_request_context_getter()); | 113 DCHECK(!resource_context_->url_request_context_getter()); |
| 109 // net_log_ is owned by BrowserMainParts. | 114 // net_log_ is owned by BrowserMainParts. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 return permission_manager_.get(); | 166 return permission_manager_.get(); |
| 162 } | 167 } |
| 163 | 168 |
| 164 content::BackgroundSyncController* | 169 content::BackgroundSyncController* |
| 165 BlimpBrowserContext::GetBackgroundSyncController() { | 170 BlimpBrowserContext::GetBackgroundSyncController() { |
| 166 return nullptr; | 171 return nullptr; |
| 167 } | 172 } |
| 168 | 173 |
| 169 } // namespace engine | 174 } // namespace engine |
| 170 } // namespace blimp | 175 } // namespace blimp |
| OLD | NEW |