Chromium Code Reviews| 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_stream_parser.h" | 5 #include "net/http/http_stream_parser.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1223 } | 1223 } |
| 1224 | 1224 |
| 1225 void HttpStreamParser::ValidateStatusLine(const std::string& status_line) { | 1225 void HttpStreamParser::ValidateStatusLine(const std::string& status_line) { |
| 1226 HttpStatusLineValidator::StatusLineStatus status = | 1226 HttpStatusLineValidator::StatusLineStatus status = |
| 1227 HttpStatusLineValidator::ValidateStatusLine(status_line); | 1227 HttpStatusLineValidator::ValidateStatusLine(status_line); |
| 1228 UMA_HISTOGRAM_ENUMERATION("Net.HttpStatusLineStatus", status, | 1228 UMA_HISTOGRAM_ENUMERATION("Net.HttpStatusLineStatus", status, |
| 1229 HttpStatusLineValidator::STATUS_LINE_MAX); | 1229 HttpStatusLineValidator::STATUS_LINE_MAX); |
| 1230 } | 1230 } |
| 1231 | 1231 |
| 1232 bool HttpStreamParser::SendRequestBuffersEmpty() { | 1232 bool HttpStreamParser::SendRequestBuffersEmpty() { |
| 1233 return request_headers_ == nullptr && request_body_send_buf_ == nullptr && | 1233 return request_headers_ == nullptr && request_body_send_buf_ == nullptr; |
| 1234 request_body_send_buf_ == nullptr; | |
|
Peter Kasting
2016/10/27 22:31:36
Based on line 610, are you sure this wasn't intend
hans
2016/10/27 22:39:09
The name suggests it's intending to check if *send
maksims (do not use this acc)
2016/10/28 04:53:09
Oh, that was a typo. It should have been a *read*
| |
| 1235 } | 1234 } |
| 1236 | 1235 |
| 1237 } // namespace net | 1236 } // namespace net |
| OLD | NEW |