| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/trace_event.h" | 10 #include "base/trace_event.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "net/http/http_chunked_decoder.h" | 21 #include "net/http/http_chunked_decoder.h" |
| 22 #include "net/http/http_network_session.h" | 22 #include "net/http/http_network_session.h" |
| 23 #include "net/http/http_request_info.h" | 23 #include "net/http/http_request_info.h" |
| 24 #include "net/http/http_util.h" | 24 #include "net/http/http_util.h" |
| 25 | 25 |
| 26 // TODO(darin): | 26 // TODO(darin): |
| 27 // - authentication | 27 // - authentication |
| 28 // + pre-emptive authorization | 28 // + pre-emptive authorization |
| 29 // + use the username/password encoded in the URL. | 29 // + use the username/password encoded in the URL. |
| 30 | 30 |
| 31 using base::Time; |
| 32 |
| 31 namespace net { | 33 namespace net { |
| 32 | 34 |
| 33 //----------------------------------------------------------------------------- | 35 //----------------------------------------------------------------------------- |
| 34 | 36 |
| 35 HttpNetworkTransaction::HttpNetworkTransaction(HttpNetworkSession* session, | 37 HttpNetworkTransaction::HttpNetworkTransaction(HttpNetworkSession* session, |
| 36 ClientSocketFactory* csf) | 38 ClientSocketFactory* csf) |
| 37 : ALLOW_THIS_IN_INITIALIZER_LIST( | 39 : ALLOW_THIS_IN_INITIALIZER_LIST( |
| 38 io_callback_(this, &HttpNetworkTransaction::OnIOComplete)), | 40 io_callback_(this, &HttpNetworkTransaction::OnIOComplete)), |
| 39 user_callback_(NULL), | 41 user_callback_(NULL), |
| 40 session_(session), | 42 session_(session), |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 auth_data_[target]->state = AUTH_STATE_NEED_AUTH; | 1093 auth_data_[target]->state = AUTH_STATE_NEED_AUTH; |
| 1092 } | 1094 } |
| 1093 | 1095 |
| 1094 response_.auth_challenge.swap(auth_info); | 1096 response_.auth_challenge.swap(auth_info); |
| 1095 auth_handler_[target].reset(auth_handler.release()); | 1097 auth_handler_[target].reset(auth_handler.release()); |
| 1096 | 1098 |
| 1097 return OK; | 1099 return OK; |
| 1098 } | 1100 } |
| 1099 | 1101 |
| 1100 } // namespace net | 1102 } // namespace net |
| OLD | NEW |