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