| 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 #ifndef NET_SPDY_SPDY_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 NextProto GetProtocol() const; | 414 NextProto GetProtocol() const; |
| 415 | 415 |
| 416 int response_status() const { return response_status_; } | 416 int response_status() const { return response_status_; } |
| 417 | 417 |
| 418 void IncrementRawReceivedBytes(size_t received_bytes) { | 418 void IncrementRawReceivedBytes(size_t received_bytes) { |
| 419 raw_received_bytes_ += received_bytes; | 419 raw_received_bytes_ += received_bytes; |
| 420 } | 420 } |
| 421 | 421 |
| 422 int64 raw_received_bytes() const { return raw_received_bytes_; } | 422 int64 raw_received_bytes() const { return raw_received_bytes_; } |
| 423 | 423 |
| 424 int64 received_bytes() const { return recv_bytes_; } |
| 425 |
| 424 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const; | 426 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const; |
| 425 | 427 |
| 426 // Get the URL from the appropriate stream headers, or the empty | 428 // Get the URL from the appropriate stream headers, or the empty |
| 427 // GURL() if it is unknown. | 429 // GURL() if it is unknown. |
| 428 // | 430 // |
| 429 // TODO(akalin): Figure out if we really need this function, | 431 // TODO(akalin): Figure out if we really need this function, |
| 430 // i.e. can we just use the URL this stream was created with and/or | 432 // i.e. can we just use the URL this stream was created with and/or |
| 431 // one we receive headers validate that the URL from them is the | 433 // one we receive headers validate that the URL from them is the |
| 432 // same. | 434 // same. |
| 433 GURL GetUrlFromHeaders() const; | 435 GURL GetUrlFromHeaders() const; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 bool write_handler_guard_; | 570 bool write_handler_guard_; |
| 569 | 571 |
| 570 base::WeakPtrFactory<SpdyStream> weak_ptr_factory_; | 572 base::WeakPtrFactory<SpdyStream> weak_ptr_factory_; |
| 571 | 573 |
| 572 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 574 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
| 573 }; | 575 }; |
| 574 | 576 |
| 575 } // namespace net | 577 } // namespace net |
| 576 | 578 |
| 577 #endif // NET_SPDY_SPDY_STREAM_H_ | 579 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |