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/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "net/base/address_family.h" | 14 #include "net/base/address_family.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/cert/x509_util.h" | 16 #include "net/cert/x509_util.h" |
17 #include "net/dns/host_resolver.h" | 17 #include "net/dns/host_resolver.h" |
18 #include "net/http/http_auth_filter.h" | 18 #include "net/http/http_auth_filter.h" |
19 #include "net/http/http_auth_preferences.h" | 19 #include "net/http/http_auth_preferences.h" |
20 #include "net/log/net_log.h" | 20 #include "net/log/net_log_capture_mode.h" |
21 #include "net/log/net_log_event_type.h" | 21 #include "net/log/net_log_event_type.h" |
| 22 #include "net/log/net_log_with_source.h" |
22 #include "net/ssl/ssl_info.h" | 23 #include "net/ssl/ssl_info.h" |
23 | 24 |
24 namespace net { | 25 namespace net { |
25 | 26 |
26 namespace { | 27 namespace { |
27 | 28 |
28 std::unique_ptr<base::Value> NetLogParameterChannelBindings( | 29 std::unique_ptr<base::Value> NetLogParameterChannelBindings( |
29 const std::string& channel_binding_token, | 30 const std::string& channel_binding_token, |
30 NetLogCaptureMode capture_mode) { | 31 NetLogCaptureMode capture_mode) { |
31 std::unique_ptr<base::DictionaryValue> dict; | 32 std::unique_ptr<base::DictionaryValue> dict; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 bool HttpAuthHandlerNegotiate::CanDelegate() const { | 367 bool HttpAuthHandlerNegotiate::CanDelegate() const { |
367 // TODO(cbentzel): Should delegation be allowed on proxies? | 368 // TODO(cbentzel): Should delegation be allowed on proxies? |
368 if (target_ == HttpAuth::AUTH_PROXY) | 369 if (target_ == HttpAuth::AUTH_PROXY) |
369 return false; | 370 return false; |
370 if (!http_auth_preferences_) | 371 if (!http_auth_preferences_) |
371 return false; | 372 return false; |
372 return http_auth_preferences_->CanDelegate(origin_); | 373 return http_auth_preferences_->CanDelegate(origin_); |
373 } | 374 } |
374 | 375 |
375 } // namespace net | 376 } // namespace net |
OLD | NEW |