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

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

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 years, 9 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
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "components/prefs/pref_member.h" 12 #include "components/prefs/pref_member.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 #include "net/url_request/url_request_job_factory.h" 15 #include "net/url_request/url_request_job_factory.h"
16 16
17 class PrefService; 17 class PrefService;
18 18
19 namespace net { 19 namespace net {
20 class CookieStore;
21 class HostResolver; 20 class HostResolver;
22 class HttpAuthHandlerFactory; 21 class HttpAuthHandlerFactory;
23 class HttpAuthPreferences; 22 class HttpAuthPreferences;
24 class HttpUserAgentSettings; 23 class HttpUserAgentSettings;
25 class NetLog; 24 class NetLog;
26 class ProxyConfigService; 25 class ProxyConfigService;
27 class URLRequestContext; 26 class URLRequestContext;
28 class URLRequestJobFactory; 27 class URLRequestJobFactory;
29 } 28 }
30 29
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 net::HostResolver* resolver); 73 net::HostResolver* resolver);
75 74
76 // Update methods for the auth related preferences 75 // Update methods for the auth related preferences
77 void UpdateServerWhitelist(); 76 void UpdateServerWhitelist();
78 void UpdateAndroidAuthNegotiateAccountType(); 77 void UpdateAndroidAuthNegotiateAccountType();
79 78
80 const base::FilePath cache_path_; 79 const base::FilePath cache_path_;
81 80
82 scoped_ptr<net::NetLog> net_log_; 81 scoped_ptr<net::NetLog> net_log_;
83 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 82 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
84 scoped_refptr<net::CookieStore> cookie_store_;
85 scoped_ptr<net::URLRequestJobFactory> job_factory_; 83 scoped_ptr<net::URLRequestJobFactory> job_factory_;
86 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; 84 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_;
87 // http_auth_preferences_ holds the preferences for the negotiate 85 // http_auth_preferences_ holds the preferences for the negotiate
88 // authenticator. 86 // authenticator.
89 scoped_ptr<net::HttpAuthPreferences> http_auth_preferences_; 87 scoped_ptr<net::HttpAuthPreferences> http_auth_preferences_;
90 scoped_ptr<net::URLRequestContext> url_request_context_; 88 scoped_ptr<net::URLRequestContext> url_request_context_;
91 89
92 // Store HTTP Auth-related policies in this thread. 90 // Store HTTP Auth-related policies in this thread.
93 StringPrefMember auth_android_negotiate_account_type_; 91 StringPrefMember auth_android_negotiate_account_type_;
94 StringPrefMember auth_server_whitelist_; 92 StringPrefMember auth_server_whitelist_;
95 93
96 // ProtocolHandlers and interceptors are stored here between 94 // ProtocolHandlers and interceptors are stored here between
97 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. 95 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call.
98 content::ProtocolHandlerMap protocol_handlers_; 96 content::ProtocolHandlerMap protocol_handlers_;
99 content::URLRequestInterceptorScopedVector request_interceptors_; 97 content::URLRequestInterceptorScopedVector request_interceptors_;
100 98
101 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); 99 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter);
102 }; 100 };
103 101
104 } // namespace android_webview 102 } // namespace android_webview
105 103
106 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ 104 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698