| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ | 5 #ifndef CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ |
| 6 #define CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ | 6 #define CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 friend class URLRequestContextGetter; | 75 friend class URLRequestContextGetter; |
| 76 friend class MainURLRequestContextGetter; | 76 friend class MainURLRequestContextGetter; |
| 77 | 77 |
| 78 void InitializeSystemContextDependencies(); | 78 void InitializeSystemContextDependencies(); |
| 79 void InitializeMainContextDependencies( | 79 void InitializeMainContextDependencies( |
| 80 net::HttpTransactionFactory* factory, | 80 net::HttpTransactionFactory* factory, |
| 81 content::ProtocolHandlerMap* protocol_handlers, | 81 content::ProtocolHandlerMap* protocol_handlers, |
| 82 content::URLRequestInterceptorScopedVector request_interceptors); | 82 content::URLRequestInterceptorScopedVector request_interceptors); |
| 83 void InitializeMediaContextDependencies(net::HttpTransactionFactory* factory); | 83 void InitializeMediaContextDependencies(net::HttpTransactionFactory* factory); |
| 84 | 84 |
| 85 void PopulateNetworkSessionParams(bool ignore_certificate_errors, | 85 void PopulateNetworkSessionParams( |
| 86 net::HttpNetworkSession::Params* params); | 86 bool ignore_certificate_errors, |
| 87 net::HttpNetworkSession::Params* session_params, |
| 88 net::HttpNetworkSession::Context* session_context); |
| 87 void DisableQuicOnBrowserIOThread(); | 89 void DisableQuicOnBrowserIOThread(); |
| 88 | 90 |
| 89 // These are called by the RequestContextGetters to create each | 91 // These are called by the RequestContextGetters to create each |
| 90 // RequestContext. | 92 // RequestContext. |
| 91 // They must be called on the IO thread. | 93 // They must be called on the IO thread. |
| 92 net::URLRequestContext* CreateSystemRequestContext(); | 94 net::URLRequestContext* CreateSystemRequestContext(); |
| 93 net::URLRequestContext* CreateMediaRequestContext(); | 95 net::URLRequestContext* CreateMediaRequestContext(); |
| 94 net::URLRequestContext* CreateMainRequestContext( | 96 net::URLRequestContext* CreateMainRequestContext( |
| 95 const base::FilePath& cookie_path, | 97 const base::FilePath& cookie_path, |
| 96 content::ProtocolHandlerMap* protocol_handlers, | 98 content::ProtocolHandlerMap* protocol_handlers, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Only accessed on content::BrowserThread::IO thread. | 141 // Only accessed on content::BrowserThread::IO thread. |
| 140 bool enable_quic_; | 142 bool enable_quic_; |
| 141 | 143 |
| 142 net::NetLog* net_log_; | 144 net::NetLog* net_log_; |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // namespace shell | 147 } // namespace shell |
| 146 } // namespace chromecast | 148 } // namespace chromecast |
| 147 | 149 |
| 148 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ | 150 #endif // CHROMECAST_BROWSER_URL_REQUEST_CONTEXT_FACTORY_H_ |
| OLD | NEW |