OLD | NEW |
(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 |
OLD | NEW |