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 : HttpAuthPreferences(std::vector<std::string>() |
| 11 #if defined(OS_POSIX) && !defined(OS_ANDROID) |
| 12 , |
| 13 std::string() |
| 14 #endif |
| 15 ) { |
| 16 } |
| 17 |
| 18 MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() {} |
| 19 |
| 20 bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials( |
| 21 const GURL& auth_origin) const { |
| 22 return true; |
| 23 } |
| 24 |
| 25 bool MockAllowHttpAuthPreferences::CanDelegate(const GURL& auth_origin) const { |
| 26 return true; |
| 27 } |
| 28 |
| 29 } // namespace net |
OLD | NEW |