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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.h

Issue 1431473004: Add Kerberos support to webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ActivitylessNegoAuth
Patch Set: Document the new supported policies Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/net/aw_url_request_context_getter.h
diff --git a/android_webview/browser/net/aw_url_request_context_getter.h b/android_webview/browser/net/aw_url_request_context_getter.h
index b7411de186a3ecd5e96c03aef52c1c8937b07c3c..06ddad5c63f2bb3bf9062351716a3c51945307a2 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.h
+++ b/android_webview/browser/net/aw_url_request_context_getter.h
@@ -13,13 +13,18 @@
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_job_factory.h"
+class PrefService;
+
namespace net {
class CookieStore;
+class HostResolver;
+class HttpAuthHandlerFactory;
class HttpUserAgentSettings;
class NetLog;
class ProxyConfigService;
class URLRequestContext;
class URLRequestJobFactory;
+class URLSecurityManager;
}
namespace android_webview {
@@ -31,7 +36,8 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter {
AwURLRequestContextGetter(
const base::FilePath& cache_path,
net::CookieStore* cookie_store,
- scoped_ptr<net::ProxyConfigService> config_service);
+ scoped_ptr<net::ProxyConfigService> config_service,
+ PrefService* pref_service);
// net::URLRequestContextGetter implementation.
net::URLRequestContext* GetURLRequestContext() override;
@@ -62,6 +68,11 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter {
void InitializeURLRequestContext();
+ // This is called to create a HttpAuthHandlerFactory that will handle
+ // negotiate challenges for the new URLRequestContext
+ scoped_ptr<net::HttpAuthHandlerFactory>
+ CreateNegotiateAuthHandlerFactory(net::HostResolver* resolver);
+
const base::FilePath cache_path_;
scoped_ptr<net::NetLog> net_log_;
@@ -71,6 +82,14 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter {
scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_;
scoped_ptr<net::URLRequestContext> url_request_context_;
+ // URLSecurityManager associated with the negotiate auth handler. It is
+ // configured to follow the auth_server_whitelist_
+ scoped_ptr<net::URLSecurityManager> url_security_manager_;
+
+ // Store HTTP Auth-related policies in this thread.
+ std::string auth_android_negotiate_account_type_;
+ std::string auth_server_whitelist_;
+
// ProtocolHandlers and interceptors are stored here between
// SetHandlersAndInterceptors() and the first GetURLRequestContext() call.
content::ProtocolHandlerMap protocol_handlers_;
« no previous file with comments | « android_webview/browser/aw_browser_policy_connector.cc ('k') | 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