OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "url_request_peer.h" | 5 #include "url_request_peer.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "net/base/load_flags.h" | 8 #include "net/base/load_flags.h" |
9 #include "net/http/http_status_code.h" | 9 #include "net/http/http_status_code.h" |
10 | 10 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 url_request_ = NULL; | 287 url_request_ = NULL; |
288 } | 288 } |
289 | 289 |
290 delegate_->OnBytesRead(this); | 290 delegate_->OnBytesRead(this); |
291 delegate_->OnRequestFinished(this); | 291 delegate_->OnRequestFinished(this); |
292 } | 292 } |
293 | 293 |
294 unsigned char* URLRequestPeer::Data() const { | 294 unsigned char* URLRequestPeer::Data() const { |
295 return reinterpret_cast<unsigned char*>(read_buffer_->StartOfBuffer()); | 295 return reinterpret_cast<unsigned char*>(read_buffer_->StartOfBuffer()); |
296 } | 296 } |
OLD | NEW |