OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // net::URLRequestContextGetter implementation. | 41 // net::URLRequestContextGetter implementation. |
42 net::URLRequestContext* GetURLRequestContext() override; | 42 net::URLRequestContext* GetURLRequestContext() override; |
43 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() | 43 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() |
44 const override; | 44 const override; |
45 | 45 |
46 // NetLog is thread-safe, so clients can call this method from arbitrary | 46 // NetLog is thread-safe, so clients can call this method from arbitrary |
47 // threads (UI and IO). | 47 // threads (UI and IO). |
48 net::NetLog* GetNetLog(); | 48 net::NetLog* GetNetLog(); |
49 | 49 |
| 50 static void set_check_cleartext_permitted(bool permitted); |
| 51 |
50 private: | 52 private: |
51 friend class AwBrowserContext; | 53 friend class AwBrowserContext; |
52 ~AwURLRequestContextGetter() override; | 54 ~AwURLRequestContextGetter() override; |
53 | 55 |
54 // Prior to GetURLRequestContext() being called, this is called to hand over | 56 // Prior to GetURLRequestContext() being called, this is called to hand over |
55 // the objects that GetURLRequestContext() will later install into | 57 // the objects that GetURLRequestContext() will later install into |
56 // |job_factory_|. This ordering is enforced by having | 58 // |job_factory_|. This ordering is enforced by having |
57 // AwBrowserContext::CreateRequestContext() call this method. | 59 // AwBrowserContext::CreateRequestContext() call this method. |
58 // This method is necessary because the passed in objects are created | 60 // This method is necessary because the passed in objects are created |
59 // on the UI thread while |job_factory_| must be created on the IO thread. | 61 // on the UI thread while |job_factory_| must be created on the IO thread. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. | 93 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. |
92 content::ProtocolHandlerMap protocol_handlers_; | 94 content::ProtocolHandlerMap protocol_handlers_; |
93 content::URLRequestInterceptorScopedVector request_interceptors_; | 95 content::URLRequestInterceptorScopedVector request_interceptors_; |
94 | 96 |
95 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); | 97 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); |
96 }; | 98 }; |
97 | 99 |
98 } // namespace android_webview | 100 } // namespace android_webview |
99 | 101 |
100 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 102 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |