| Index: net/quic/crypto/crypto_server_config_protobuf.h
|
| diff --git a/net/quic/crypto/crypto_server_config_protobuf.h b/net/quic/crypto/crypto_server_config_protobuf.h
|
| index 6340ae023c49262af3687f21c89d76a11b035212..e76ff1452b445c7d7b899dc59979caa744896891 100644
|
| --- a/net/quic/crypto/crypto_server_config_protobuf.h
|
| +++ b/net/quic/crypto/crypto_server_config_protobuf.h
|
| @@ -85,6 +85,18 @@ class NET_EXPORT_PRIVATE QuicServerConfigProtobuf {
|
| primary_time_ = primary_time;
|
| }
|
|
|
| + bool has_priority() const {
|
| + return priority_ > 0;
|
| + }
|
| +
|
| + int64 priority() const {
|
| + return priority_;
|
| + }
|
| +
|
| + void set_priority(int64 priority) {
|
| + priority_ = priority;
|
| + }
|
| +
|
| private:
|
| std::vector<PrivateKey*> keys_;
|
|
|
| @@ -94,6 +106,11 @@ class NET_EXPORT_PRIVATE QuicServerConfigProtobuf {
|
| // primary_time_ contains a UNIX epoch seconds value that indicates when this
|
| // config should become primary.
|
| int64 primary_time_;
|
| +
|
| + // Relative priority of this config vs other configs with the same
|
| + // primary time. For use as a secondary sort key when selecting the
|
| + // primary config.
|
| + uint64 priority_;
|
| };
|
|
|
| } // namespace net
|
|
|