| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/http/http_auth_handler_negotiate.h" | 5 #include "net/http/http_auth_handler_negotiate.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "net/base/address_family.h" | 13 #include "net/base/address_family.h" |
| 14 #include "net/base/host_resolver.h" | |
| 15 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 16 #include "net/base/single_request_host_resolver.h" | 15 #include "net/dns/host_resolver.h" |
| 16 #include "net/dns/single_request_host_resolver.h" |
| 17 #include "net/http/http_auth_filter.h" | 17 #include "net/http/http_auth_filter.h" |
| 18 #include "net/http/url_security_manager.h" | 18 #include "net/http/url_security_manager.h" |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 | 21 |
| 22 HttpAuthHandlerNegotiate::Factory::Factory() | 22 HttpAuthHandlerNegotiate::Factory::Factory() |
| 23 : disable_cname_lookup_(false), | 23 : disable_cname_lookup_(false), |
| 24 use_port_(false), | 24 use_port_(false), |
| 25 resolver_(NULL), | 25 resolver_(NULL), |
| 26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 bool HttpAuthHandlerNegotiate::CanDelegate() const { | 330 bool HttpAuthHandlerNegotiate::CanDelegate() const { |
| 331 // TODO(cbentzel): Should delegation be allowed on proxies? | 331 // TODO(cbentzel): Should delegation be allowed on proxies? |
| 332 if (target_ == HttpAuth::AUTH_PROXY) | 332 if (target_ == HttpAuth::AUTH_PROXY) |
| 333 return false; | 333 return false; |
| 334 if (!url_security_manager_) | 334 if (!url_security_manager_) |
| 335 return false; | 335 return false; |
| 336 return url_security_manager_->CanDelegate(origin_); | 336 return url_security_manager_->CanDelegate(origin_); |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace net | 339 } // namespace net |
| OLD | NEW |