| 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_HTTP_BIDIRECTIONAL_STREAM_IMPL_H_ | 5 #ifndef NET_HTTP_BIDIRECTIONAL_STREAM_IMPL_H_ |
| 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_IMPL_H_ | 6 #define NET_HTTP_BIDIRECTIONAL_STREAM_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "net/base/load_timing_info.h" |
| 15 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 16 #include "net/socket/next_proto.h" | 17 #include "net/socket/next_proto.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class Timer; | 20 class Timer; |
| 20 } // namespace base | 21 } // namespace base |
| 21 | 22 |
| 22 namespace net { | 23 namespace net { |
| 23 | 24 |
| 24 class BoundNetLog; | 25 class BoundNetLog; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // push_promise frames associated with this stream, including the size of | 144 // push_promise frames associated with this stream, including the size of |
| 144 // frame headers, after SSL decryption and not including proxy overhead. | 145 // frame headers, after SSL decryption and not including proxy overhead. |
| 145 virtual int64_t GetTotalReceivedBytes() const = 0; | 146 virtual int64_t GetTotalReceivedBytes() const = 0; |
| 146 | 147 |
| 147 // Total number of bytes sent over the network of SPDY frames associated with | 148 // Total number of bytes sent over the network of SPDY frames associated with |
| 148 // this stream, including the size of frame headers, before SSL encryption and | 149 // this stream, including the size of frame headers, before SSL encryption and |
| 149 // not including proxy overhead. Note that some SPDY frames such as pings are | 150 // not including proxy overhead. Note that some SPDY frames such as pings are |
| 150 // not associated with any stream, and are not included in this value. | 151 // not associated with any stream, and are not included in this value. |
| 151 virtual int64_t GetTotalSentBytes() const = 0; | 152 virtual int64_t GetTotalSentBytes() const = 0; |
| 152 | 153 |
| 154 // Populates the connection establishment part of |load_timing_info|, and |
| 155 // socket reuse info. Return true if LoadTimingInfo is obtained successfully |
| 156 // and false otherwise. |
| 157 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; |
| 158 |
| 153 private: | 159 private: |
| 154 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamImpl); | 160 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamImpl); |
| 155 }; | 161 }; |
| 156 | 162 |
| 157 } // namespace net | 163 } // namespace net |
| 158 | 164 |
| 159 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_IMPL_H_ | 165 #endif // NET_HTTP_BIDIRECTIONAL_STREAM_IMPL_H_ |
| OLD | NEW |