| 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_QUIC_CORE_QUIC_UTILS_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_UTILS_H_ |
| 6 #define NET_QUIC_CORE_QUIC_UTILS_H_ | 6 #define NET_QUIC_CORE_QUIC_UTILS_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <cstdint> | 9 #include <cstdint> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Returns PeerAddressChangeType as a std::string. | 53 // Returns PeerAddressChangeType as a std::string. |
| 54 static std::string PeerAddressChangeTypeToString(PeerAddressChangeType type); | 54 static std::string PeerAddressChangeTypeToString(PeerAddressChangeType type); |
| 55 | 55 |
| 56 // Determines and returns change type of address change from |old_address| to | 56 // Determines and returns change type of address change from |old_address| to |
| 57 // |new_address|. | 57 // |new_address|. |
| 58 static PeerAddressChangeType DetermineAddressChangeType( | 58 static PeerAddressChangeType DetermineAddressChangeType( |
| 59 const QuicSocketAddress& old_address, | 59 const QuicSocketAddress& old_address, |
| 60 const QuicSocketAddress& new_address); | 60 const QuicSocketAddress& new_address); |
| 61 | 61 |
| 62 // Returns whether connection id needs to be read/write in big endian. |
| 63 // TODO(fayang): Remove this method once deprecating |
| 64 // FLAGS_quic_restart_flag_quic_big_endian_connection_id_client and |
| 65 // FLAGS_quic_restart_flag_quic_big_endian_connection_id_server. |
| 66 static bool IsConnectionIdWireFormatBigEndian(Perspective perspective); |
| 67 |
| 62 private: | 68 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(QuicUtils); | 69 DISALLOW_COPY_AND_ASSIGN(QuicUtils); |
| 64 }; | 70 }; |
| 65 | 71 |
| 66 } // namespace net | 72 } // namespace net |
| 67 | 73 |
| 68 #endif // NET_QUIC_CORE_QUIC_UTILS_H_ | 74 #endif // NET_QUIC_CORE_QUIC_UTILS_H_ |
| OLD | NEW |