| 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 #ifndef BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ |
| 6 #define BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class HostResolver; | 22 class HostResolver; |
| 23 class NetworkDelegate; | 23 class NetworkDelegate; |
| 24 class NetLog; | 24 class NetLog; |
| 25 class ProxyConfigService; | 25 class ProxyConfigService; |
| 26 class ProxyService; | 26 class ProxyService; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace blimp { | 29 namespace blimp { |
| 30 namespace engine { | 30 namespace engine { |
| 31 | 31 |
| 32 // The URLRequestContextGetter for Blimp "user" requests. |
| 33 // System request context is handled in a separate class. |
| 32 class BlimpURLRequestContextGetter : public net::URLRequestContextGetter { | 34 class BlimpURLRequestContextGetter : public net::URLRequestContextGetter { |
| 33 public: | 35 public: |
| 34 // The content of |protocol_handlers| is is swapped into the new instance. | 36 // The content of |protocol_handlers| is is swapped into the new instance. |
| 35 BlimpURLRequestContextGetter( | 37 BlimpURLRequestContextGetter( |
| 36 bool ignore_certificate_errors, | 38 bool ignore_certificate_errors, |
| 37 const base::FilePath& base_path, | 39 const base::FilePath& base_path, |
| 38 const scoped_refptr<base::SingleThreadTaskRunner>& io_loop_task_runner, | 40 const scoped_refptr<base::SingleThreadTaskRunner>& io_loop_task_runner, |
| 39 const scoped_refptr<base::SingleThreadTaskRunner>& file_loop_task_runner, | 41 const scoped_refptr<base::SingleThreadTaskRunner>& file_loop_task_runner, |
| 40 content::ProtocolHandlerMap* protocol_handlers, | 42 content::ProtocolHandlerMap* protocol_handlers, |
| 41 content::URLRequestInterceptorScopedVector request_interceptors, | 43 content::URLRequestInterceptorScopedVector request_interceptors, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 62 content::ProtocolHandlerMap protocol_handlers_; | 64 content::ProtocolHandlerMap protocol_handlers_; |
| 63 content::URLRequestInterceptorScopedVector request_interceptors_; | 65 content::URLRequestInterceptorScopedVector request_interceptors_; |
| 64 | 66 |
| 65 DISALLOW_COPY_AND_ASSIGN(BlimpURLRequestContextGetter); | 67 DISALLOW_COPY_AND_ASSIGN(BlimpURLRequestContextGetter); |
| 66 }; | 68 }; |
| 67 | 69 |
| 68 } // namespace engine | 70 } // namespace engine |
| 69 } // namespace blimp | 71 } // namespace blimp |
| 70 | 72 |
| 71 #endif // BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ | 73 #endif // BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |