Index: net/quic/quic_protocol.h |
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h |
index 6dd8ef3762253da46f46d48447e9595182d56c6d..e692c158446ed9fdf60c8305d6cc1cd34f0c6323 100644 |
--- a/net/quic/quic_protocol.h |
+++ b/net/quic/quic_protocol.h |
@@ -1046,43 +1046,6 @@ struct NET_EXPORT_PRIVATE TransmissionInfo { |
bool in_flight; |
}; |
-// A struct for functions which consume data payloads and fins. |
-struct NET_EXPORT_PRIVATE QuicConsumedData { |
- QuicConsumedData(size_t bytes_consumed, bool fin_consumed); |
- |
- // By default, gtest prints the raw bytes of an object. The bool data |
- // member causes this object to have padding bytes, which causes the |
- // default gtest object printer to read uninitialize memory. So we need |
- // to teach gtest how to print this object. |
- NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
- std::ostream& os, const QuicConsumedData& s); |
- |
- // How many bytes were consumed. |
- size_t bytes_consumed; |
- |
- // True if an incoming fin was consumed. |
- bool fin_consumed; |
-}; |
- |
-enum WriteStatus { |
- WRITE_STATUS_OK, |
- WRITE_STATUS_BLOCKED, |
- WRITE_STATUS_ERROR, |
-}; |
- |
-// A struct used to return the result of write calls including either the number |
-// of bytes written or the error code, depending upon the status. |
-struct NET_EXPORT_PRIVATE WriteResult { |
- WriteResult(WriteStatus status, int bytes_written_or_error_code); |
- WriteResult(); |
- |
- WriteStatus status; |
- union { |
- int bytes_written; // only valid when status is OK |
- int error_code; // only valid when status is ERROR |
- }; |
-}; |
- |
} // namespace net |
#endif // NET_QUIC_QUIC_PROTOCOL_H_ |