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 #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 "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "content/public/browser/content_browser_client.h" | 11 #include "content/public/browser/content_browser_client.h" |
| 12 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class MessageLoop; | 15 class MessageLoop; |
| 16 class SingleThreadTaskRunner; | 16 class SingleThreadTaskRunner; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 class HostResolver; | 20 class HostResolver; |
| 21 class NetworkDelegate; | 21 class NetworkDelegate; |
| 22 class NetLog; | 22 class NetLog; |
| 23 class ProxyConfigService; | 23 class ProxyConfigService; |
| 24 class ProxyService; | 24 class ProxyService; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace blimp { | 27 namespace blimp { |
| 28 namespace engine { | 28 namespace engine { |
| 29 | 29 |
| 30 // The URLRequestContextGetter for blimp "user" requests. | |
|
Kevin M
2016/04/08 01:09:08
Capitalize "Blimp"
Jess
2016/04/08 19:39:02
Done.
| |
| 31 // System request context is handled in a separate class. | |
| 30 class BlimpURLRequestContextGetter : public net::URLRequestContextGetter { | 32 class BlimpURLRequestContextGetter : public net::URLRequestContextGetter { |
| 31 public: | 33 public: |
| 32 // The content of |protocol_handlers| is is swapped into the new instance. | 34 // The content of |protocol_handlers| is is swapped into the new instance. |
| 33 BlimpURLRequestContextGetter( | 35 BlimpURLRequestContextGetter( |
| 34 bool ignore_certificate_errors, | 36 bool ignore_certificate_errors, |
| 35 const base::FilePath& base_path, | 37 const base::FilePath& base_path, |
| 36 const scoped_refptr<base::SingleThreadTaskRunner>& io_loop_task_runner, | 38 const scoped_refptr<base::SingleThreadTaskRunner>& io_loop_task_runner, |
| 37 const scoped_refptr<base::SingleThreadTaskRunner>& file_loop_task_runner, | 39 const scoped_refptr<base::SingleThreadTaskRunner>& file_loop_task_runner, |
| 38 content::ProtocolHandlerMap* protocol_handlers, | 40 content::ProtocolHandlerMap* protocol_handlers, |
| 39 content::URLRequestInterceptorScopedVector request_interceptors, | 41 content::URLRequestInterceptorScopedVector request_interceptors, |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 60 content::ProtocolHandlerMap protocol_handlers_; | 62 content::ProtocolHandlerMap protocol_handlers_; |
| 61 content::URLRequestInterceptorScopedVector request_interceptors_; | 63 content::URLRequestInterceptorScopedVector request_interceptors_; |
| 62 | 64 |
| 63 DISALLOW_COPY_AND_ASSIGN(BlimpURLRequestContextGetter); | 65 DISALLOW_COPY_AND_ASSIGN(BlimpURLRequestContextGetter); |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 } // namespace engine | 68 } // namespace engine |
| 67 } // namespace blimp | 69 } // namespace blimp |
| 68 | 70 |
| 69 #endif // BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ | 71 #endif // BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |