| 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_controller.h" | 5 #include "net/http/http_auth_controller.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/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/threading/platform_thread.h" | 11 #include "base/threading/platform_thread.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "net/base/auth.h" | 13 #include "net/base/auth.h" |
| 14 #include "net/base/host_resolver.h" | |
| 15 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
| 15 #include "net/dns/host_resolver.h" |
| 16 #include "net/http/http_auth_handler.h" | 16 #include "net/http/http_auth_handler.h" |
| 17 #include "net/http/http_auth_handler_factory.h" | 17 #include "net/http/http_auth_handler_factory.h" |
| 18 #include "net/http/http_network_session.h" | 18 #include "net/http/http_network_session.h" |
| 19 #include "net/http/http_request_headers.h" | 19 #include "net/http/http_request_headers.h" |
| 20 #include "net/http/http_request_info.h" | 20 #include "net/http/http_request_info.h" |
| 21 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 DCHECK(CalledOnValidThread()); | 557 DCHECK(CalledOnValidThread()); |
| 558 return disabled_schemes_.find(scheme) != disabled_schemes_.end(); | 558 return disabled_schemes_.find(scheme) != disabled_schemes_.end(); |
| 559 } | 559 } |
| 560 | 560 |
| 561 void HttpAuthController::DisableAuthScheme(HttpAuth::Scheme scheme) { | 561 void HttpAuthController::DisableAuthScheme(HttpAuth::Scheme scheme) { |
| 562 DCHECK(CalledOnValidThread()); | 562 DCHECK(CalledOnValidThread()); |
| 563 disabled_schemes_.insert(scheme); | 563 disabled_schemes_.insert(scheme); |
| 564 } | 564 } |
| 565 | 565 |
| 566 } // namespace net | 566 } // namespace net |
| OLD | NEW |