Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: android_webview/browser/net/aw_url_request_context_getter.h

Issue 2677813002: Revert of Enable HTTP cleartext configuration for Webview (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
52 private: 50 private:
53 friend class AwBrowserContext; 51 friend class AwBrowserContext;
54 ~AwURLRequestContextGetter() override; 52 ~AwURLRequestContextGetter() override;
55 53
56 // Prior to GetURLRequestContext() being called, this is called to hand over 54 // Prior to GetURLRequestContext() being called, this is called to hand over
57 // the objects that GetURLRequestContext() will later install into 55 // the objects that GetURLRequestContext() will later install into
58 // |job_factory_|. This ordering is enforced by having 56 // |job_factory_|. This ordering is enforced by having
59 // AwBrowserContext::CreateRequestContext() call this method. 57 // AwBrowserContext::CreateRequestContext() call this method.
60 // This method is necessary because the passed in objects are created 58 // This method is necessary because the passed in objects are created
61 // on the UI thread while |job_factory_| must be created on the IO thread. 59 // 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
93 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. 91 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call.
94 content::ProtocolHandlerMap protocol_handlers_; 92 content::ProtocolHandlerMap protocol_handlers_;
95 content::URLRequestInterceptorScopedVector request_interceptors_; 93 content::URLRequestInterceptorScopedVector request_interceptors_;
96 94
97 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); 95 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter);
98 }; 96 };
99 97
100 } // namespace android_webview 98 } // namespace android_webview
101 99
102 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ 100 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698