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