| 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/quic/quic_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #ifdef TEMP_INSTRUMENTATION_468529 | 8 #ifdef TEMP_INSTRUMENTATION_468529 |
| 9 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
| 10 #endif | 10 #endif |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 } | 257 } |
| 258 | 258 |
| 259 int64 QuicHttpStream::GetTotalReceivedBytes() const { | 259 int64 QuicHttpStream::GetTotalReceivedBytes() const { |
| 260 if (stream_) { | 260 if (stream_) { |
| 261 return stream_->stream_bytes_read(); | 261 return stream_->stream_bytes_read(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 return closed_stream_received_bytes_; | 264 return closed_stream_received_bytes_; |
| 265 } | 265 } |
| 266 | 266 |
| 267 int64_t QuicHttpStream::GetTotalSentBytes() const { |
| 268 // TODO(sclittle): Implement this for real. http://crbug.com/518897. |
| 269 return 0; |
| 270 } |
| 271 |
| 267 bool QuicHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { | 272 bool QuicHttpStream::GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const { |
| 268 // TODO(mmenke): Figure out what to do here. | 273 // TODO(mmenke): Figure out what to do here. |
| 269 return true; | 274 return true; |
| 270 } | 275 } |
| 271 | 276 |
| 272 void QuicHttpStream::GetSSLInfo(SSLInfo* ssl_info) { | 277 void QuicHttpStream::GetSSLInfo(SSLInfo* ssl_info) { |
| 273 DCHECK(stream_); | 278 DCHECK(stream_); |
| 274 session_->GetSSLInfo(ssl_info); | 279 session_->GetSSLInfo(ssl_info); |
| 275 } | 280 } |
| 276 | 281 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 base::debug::StackTrace stack_trace = stack_trace_; | 569 base::debug::StackTrace stack_trace = stack_trace_; |
| 565 | 570 |
| 566 base::debug::Alias(&liveness); | 571 base::debug::Alias(&liveness); |
| 567 base::debug::Alias(&stack_trace); | 572 base::debug::Alias(&stack_trace); |
| 568 | 573 |
| 569 CHECK_EQ(ALIVE, liveness); | 574 CHECK_EQ(ALIVE, liveness); |
| 570 #endif | 575 #endif |
| 571 } | 576 } |
| 572 | 577 |
| 573 } // namespace net | 578 } // namespace net |
| OLD | NEW |