mock_allow_http_auth_preferences.cc 773 B

123456789101112131415161718192021222324
  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. #include "net/http/mock_allow_http_auth_preferences.h"
  5. #include "build/build_config.h"
  6. namespace net {
  7. MockAllowHttpAuthPreferences::MockAllowHttpAuthPreferences() = default;
  8. MockAllowHttpAuthPreferences::~MockAllowHttpAuthPreferences() = default;
  9. bool MockAllowHttpAuthPreferences::CanUseDefaultCredentials(
  10. const url::SchemeHostPort& auth_scheme_host_port) const {
  11. return true;
  12. }
  13. HttpAuth::DelegationType MockAllowHttpAuthPreferences::GetDelegationType(
  14. const url::SchemeHostPort& auth_scheme_host_port) const {
  15. return HttpAuth::DelegationType::kUnconstrained;
  16. }
  17. } // namespace net