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

Unified Diff: net/http/mock_allow_http_auth_preferences.cc

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error on Windows and component build link error 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: net/http/mock_allow_http_auth_preferences.cc
diff --git a/net/http/mock_allow_http_auth_preferences.cc b/net/http/mock_allow_http_auth_preferences.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ee09ed5bdc2bea27fea0861ce06f988f619bb9dc
--- /dev/null
+++ b/net/http/mock_allow_http_auth_preferences.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/http/mock_allow_http_auth_preferences.h"
+
+namespace net {
+
+MockAllowHttpAuthPreferences::MockAllowHttpAuthPreferences()
+ : disable_cname_lookup_(false), use_port_(false) {}
+
+MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() {}
+
+bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials(
+ const GURL& auth_origin) const {
+ return true;
+}
+
+bool MockAllowHttpAuthPreferences::CanDelegate(const GURL& auth_origin) const {
+ return true;
+}
+
+bool MockAllowHttpAuthPreferences::negotiate_disable_cname_lookup() const {
+ return disable_cname_lookup_;
+}
+
+bool MockAllowHttpAuthPreferences::negotiate_enable_port() const {
+ return use_port_;
+}
+#if defined(OS_ANDROID)
+std::string MockAllowHttpAuthPreferences::auth_android_negotiate_account_type()
+ const {
+ return account_type_;
+}
+#endif
+}
+// namespace net

Powered by Google App Engine
This is Rietveld 408576698