| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.h" | 5 #include "net/http/http_auth_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | |
| 9 #include "base/stringprintf.h" | |
| 10 #include "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
| 11 | 9 |
| 12 namespace net { | 10 namespace net { |
| 13 | 11 |
| 14 HttpAuthHandler::HttpAuthHandler() | 12 HttpAuthHandler::HttpAuthHandler() |
| 15 : auth_scheme_(AUTH_SCHEME_MAX), | 13 : auth_scheme_(AUTH_SCHEME_MAX), |
| 16 score_(-1), | 14 score_(-1), |
| 17 target_(HttpAuth::AUTH_NONE), | 15 target_(HttpAuth::AUTH_NONE), |
| 18 properties_(-1), | 16 properties_(-1), |
| 19 original_callback_(NULL), | 17 original_callback_(NULL), |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 callback->Run(rv); | 98 callback->Run(rv); |
| 101 } | 99 } |
| 102 | 100 |
| 103 void HttpAuthHandler::FinishGenerateAuthToken() { | 101 void HttpAuthHandler::FinishGenerateAuthToken() { |
| 104 // TOOD(cbentzel): Should this be done in OK case only? | 102 // TOOD(cbentzel): Should this be done in OK case only? |
| 105 net_log_.EndEvent(EventTypeFromAuthTarget(target_), NULL); | 103 net_log_.EndEvent(EventTypeFromAuthTarget(target_), NULL); |
| 106 original_callback_ = NULL; | 104 original_callback_ = NULL; |
| 107 } | 105 } |
| 108 | 106 |
| 109 } // namespace net | 107 } // namespace net |
| OLD | NEW |