| 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_stream_factory.h" | 5 #include "net/http/http_stream_factory.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 HttpStreamRequest* request, int result) { | 158 HttpStreamRequest* request, int result) { |
| 159 RequestCallbackMap::iterator it = request_callback_map_.find(request); | 159 RequestCallbackMap::iterator it = request_callback_map_.find(request); |
| 160 DCHECK(it != request_callback_map_.end()); | 160 DCHECK(it != request_callback_map_.end()); |
| 161 CompletionCallback* callback = it->second; | 161 CompletionCallback* callback = it->second; |
| 162 request_callback_map_.erase(it); | 162 request_callback_map_.erase(it); |
| 163 delete request; | 163 delete request; |
| 164 callback->Run(result); | 164 callback->Run(result); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace net | 167 } // namespace net |
| 168 | |
| OLD | NEW |