| 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_HTTP_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ | 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Must not be called if a NULL SpdySession was pssed into the | 63 // Must not be called if a NULL SpdySession was pssed into the |
| 64 // constructor. | 64 // constructor. |
| 65 bool IsConnectionReused() const override; | 65 bool IsConnectionReused() const override; |
| 66 | 66 |
| 67 void SetConnectionReused() override; | 67 void SetConnectionReused() override; |
| 68 bool CanReuseConnection() const override; | 68 bool CanReuseConnection() const override; |
| 69 // Total number of bytes received over the network of SPDY data, headers, and | 69 // Total number of bytes received over the network of SPDY data, headers, and |
| 70 // push_promise frames associated with this stream, including the size of | 70 // push_promise frames associated with this stream, including the size of |
| 71 // frame headers, after SSL decryption and not including proxy overhead. | 71 // frame headers, after SSL decryption and not including proxy overhead. |
| 72 int64 GetTotalReceivedBytes() const override; | 72 int64_t GetTotalReceivedBytes() const override; |
| 73 // Total number of bytes sent over the network of SPDY frames associated with | 73 // Total number of bytes sent over the network of SPDY frames associated with |
| 74 // this stream, including the size of frame headers, before SSL encryption and | 74 // this stream, including the size of frame headers, before SSL encryption and |
| 75 // not including proxy overhead. Note that some SPDY frames such as pings are | 75 // not including proxy overhead. Note that some SPDY frames such as pings are |
| 76 // not associated with any stream, and are not included in this value. | 76 // not associated with any stream, and are not included in this value. |
| 77 int64_t GetTotalSentBytes() const override; | 77 int64_t GetTotalSentBytes() const override; |
| 78 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 78 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 79 void GetSSLInfo(SSLInfo* ssl_info) override; | 79 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 80 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 80 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 81 void Drain(HttpNetworkSession* session) override; | 81 void Drain(HttpNetworkSession* session) override; |
| 82 void SetPriority(RequestPriority priority) override; | 82 void SetPriority(RequestPriority priority) override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 bool stream_closed_; | 123 bool stream_closed_; |
| 124 | 124 |
| 125 // Set only when |stream_closed_| is true. | 125 // Set only when |stream_closed_| is true. |
| 126 int closed_stream_status_; | 126 int closed_stream_status_; |
| 127 SpdyStreamId closed_stream_id_; | 127 SpdyStreamId closed_stream_id_; |
| 128 bool closed_stream_has_load_timing_info_; | 128 bool closed_stream_has_load_timing_info_; |
| 129 LoadTimingInfo closed_stream_load_timing_info_; | 129 LoadTimingInfo closed_stream_load_timing_info_; |
| 130 // After |stream_| has been closed, this keeps track of the total number of | 130 // After |stream_| has been closed, this keeps track of the total number of |
| 131 // bytes received over the network for |stream_| while it was open. | 131 // bytes received over the network for |stream_| while it was open. |
| 132 int64 closed_stream_received_bytes_; | 132 int64_t closed_stream_received_bytes_; |
| 133 // After |stream_| has been closed, this keeps track of the total number of | 133 // After |stream_| has been closed, this keeps track of the total number of |
| 134 // bytes sent over the network for |stream_| while it was open. | 134 // bytes sent over the network for |stream_| while it was open. |
| 135 int64_t closed_stream_sent_bytes_; | 135 int64_t closed_stream_sent_bytes_; |
| 136 | 136 |
| 137 // The request to send. | 137 // The request to send. |
| 138 const HttpRequestInfo* request_info_; | 138 const HttpRequestInfo* request_info_; |
| 139 | 139 |
| 140 // |response_info_| is the HTTP response data object which is filled in | 140 // |response_info_| is the HTTP response data object which is filled in |
| 141 // when a SYN_REPLY comes in for the stream. | 141 // when a SYN_REPLY comes in for the stream. |
| 142 // It is not owned by this stream object, or point to |push_response_info_|. | 142 // It is not owned by this stream object, or point to |push_response_info_|. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 171 bool direct_; | 171 bool direct_; |
| 172 | 172 |
| 173 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 173 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 175 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace net | 178 } // namespace net |
| 179 | 179 |
| 180 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 180 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |