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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/http/mock_allow_http_auth_preferences.h"
6
7 namespace net {
8
9 MockAllowHttpAuthPreferences::MockAllowHttpAuthPreferences()
10 : disable_cname_lookup_(false), use_port_(false) {}
11
12 MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() {}
13
14 bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials(
15 const GURL& auth_origin) const {
16 return true;
17 }
18
19 bool MockAllowHttpAuthPreferences::CanDelegate(const GURL& auth_origin) const {
20 return true;
21 }
22
23 bool MockAllowHttpAuthPreferences::negotiate_disable_cname_lookup() const {
24 return disable_cname_lookup_;
25 }
26
27 bool MockAllowHttpAuthPreferences::negotiate_enable_port() const {
28 return use_port_;
29 }
30 #if defined(OS_ANDROID)
31 std::string MockAllowHttpAuthPreferences::auth_android_negotiate_account_type()
32 const {
33 return account_type_;
34 }
35 #endif
36 }
37 // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698