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

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

Issue 2676913002: Enable HTTP cleartext configuration for Webview (Closed)
Patch Set: better not to break other entry points 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
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
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_
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