| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 5 #ifndef NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Whether OnClose has been invoked. | 98 // Whether OnClose has been invoked. |
| 99 bool stream_closed_; | 99 bool stream_closed_; |
| 100 // Status reported in OnClose. | 100 // Status reported in OnClose. |
| 101 int closed_stream_status_; | 101 int closed_stream_status_; |
| 102 // After |stream_| has been closed, this keeps track of the total number of | 102 // After |stream_| has been closed, this keeps track of the total number of |
| 103 // bytes received over the network for |stream_| while it was open. | 103 // bytes received over the network for |stream_| while it was open. |
| 104 int64_t closed_stream_received_bytes_; | 104 int64_t closed_stream_received_bytes_; |
| 105 // After |stream_| has been closed, this keeps track of the total number of | 105 // After |stream_| has been closed, this keeps track of the total number of |
| 106 // bytes sent over the network for |stream_| while it was open. | 106 // bytes sent over the network for |stream_| while it was open. |
| 107 int64_t closed_stream_sent_bytes_; | 107 int64_t closed_stream_sent_bytes_; |
| 108 // True if |stream_| has LoadTimingInfo when it is closed. |
| 109 bool closed_has_load_timing_info_; |
| 110 // LoadTimingInfo populated when |stream_| is closed. |
| 111 LoadTimingInfo closed_load_timing_info_; |
| 112 |
| 108 // This is the combined buffer of buffers passed in through SendvData. | 113 // This is the combined buffer of buffers passed in through SendvData. |
| 109 // Keep a reference here so it is alive until OnDataSent is invoked. | 114 // Keep a reference here so it is alive until OnDataSent is invoked. |
| 110 scoped_refptr<IOBuffer> pending_combined_buffer_; | 115 scoped_refptr<IOBuffer> pending_combined_buffer_; |
| 111 | 116 |
| 112 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; | 117 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; |
| 113 | 118 |
| 114 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); | 119 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); |
| 115 }; | 120 }; |
| 116 | 121 |
| 117 } // namespace net | 122 } // namespace net |
| 118 | 123 |
| 119 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ | 124 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ |
| OLD | NEW |