| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
| 14 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class MessageLoop; | |
| 18 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace net { | 20 namespace net { |
| 22 class HostResolver; | 21 class HostResolver; |
| 23 class NetworkDelegate; | |
| 24 class NetLog; | 22 class NetLog; |
| 25 class ProxyConfigService; | 23 class ProxyConfigService; |
| 26 class ProxyService; | |
| 27 } | 24 } |
| 28 | 25 |
| 29 namespace blimp { | 26 namespace blimp { |
| 30 namespace engine { | 27 namespace engine { |
| 31 | 28 |
| 32 // The URLRequestContextGetter for Blimp "user" requests. | 29 // The URLRequestContextGetter for Blimp "user" requests. |
| 33 // System request context is handled in a separate class. | 30 // System request context is handled in a separate class. |
| 34 class BlimpURLRequestContextGetter : public net::URLRequestContextGetter { | 31 class BlimpURLRequestContextGetter : public net::URLRequestContextGetter { |
| 35 public: | 32 public: |
| 36 // The content of |protocol_handlers| is is swapped into the new instance. | 33 // The content of |protocol_handlers| is is swapped into the new instance. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 64 content::ProtocolHandlerMap protocol_handlers_; | 61 content::ProtocolHandlerMap protocol_handlers_; |
| 65 content::URLRequestInterceptorScopedVector request_interceptors_; | 62 content::URLRequestInterceptorScopedVector request_interceptors_; |
| 66 | 63 |
| 67 DISALLOW_COPY_AND_ASSIGN(BlimpURLRequestContextGetter); | 64 DISALLOW_COPY_AND_ASSIGN(BlimpURLRequestContextGetter); |
| 68 }; | 65 }; |
| 69 | 66 |
| 70 } // namespace engine | 67 } // namespace engine |
| 71 } // namespace blimp | 68 } // namespace blimp |
| 72 | 69 |
| 73 #endif // BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ | 70 #endif // BLIMP_ENGINE_APP_BLIMP_URL_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |