| Index: net/quic/quic_framer.h
|
| diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
|
| index 3cfaa88d37201bd1dfd5892b4752b9a4eb4d3d54..34744d91b031ad881908a3321292474cdb5249a8 100644
|
| --- a/net/quic/quic_framer.h
|
| +++ b/net/quic/quic_framer.h
|
| @@ -67,8 +67,8 @@ class NET_EXPORT_PRIVATE QuicFramerVisitorInterface {
|
| // Called if an error is detected in the QUIC protocol.
|
| virtual void OnError(QuicFramer* framer) = 0;
|
|
|
| - // Called only when |is_server_| is true and the the framer gets a packet with
|
| - // version flag true and the version on the packet doesn't match
|
| + // Called only when |perspective_| is IS_SERVER and the the framer gets a
|
| + // packet with version flag true and the version on the packet doesn't match
|
| // |quic_version_|. The visitor should return true after it updates the
|
| // version of the |framer_| to |received_version| or false to stop processing
|
| // this packet.
|
| @@ -83,8 +83,8 @@ class NET_EXPORT_PRIVATE QuicFramerVisitorInterface {
|
| virtual void OnPublicResetPacket(
|
| const QuicPublicResetPacket& packet) = 0;
|
|
|
| - // Called only when |is_server_| is false and a version negotiation packet has
|
| - // been parsed.
|
| + // Called only when |perspective_| is IS_CLIENT and a version negotiation
|
| + // packet has been parsed.
|
| virtual void OnVersionNegotiationPacket(
|
| const QuicVersionNegotiationPacket& packet) = 0;
|
|
|
| @@ -187,7 +187,7 @@ class NET_EXPORT_PRIVATE QuicFramer {
|
| // version in |supported_versions|.
|
| QuicFramer(const QuicVersionVector& supported_versions,
|
| QuicTime creation_time,
|
| - bool is_server);
|
| + Perspective perspective);
|
|
|
| virtual ~QuicFramer();
|
|
|
| @@ -370,7 +370,7 @@ class NET_EXPORT_PRIVATE QuicFramer {
|
|
|
| void set_validate_flags(bool value) { validate_flags_ = value; }
|
|
|
| - bool is_server() const { return is_server_; }
|
| + Perspective perspective() const { return perspective_; }
|
|
|
| static QuicPacketEntropyHash GetPacketEntropyHash(
|
| const QuicPacketHeader& header);
|
| @@ -529,7 +529,7 @@ class NET_EXPORT_PRIVATE QuicFramer {
|
| scoped_ptr<QuicEncrypter> encrypter_[NUM_ENCRYPTION_LEVELS];
|
| // Tracks if the framer is being used by the entity that received the
|
| // connection or the entity that initiated it.
|
| - bool is_server_;
|
| + Perspective perspective_;
|
| // If false, skip validation that the public flags are set to legal values.
|
| bool validate_flags_;
|
| // The time this framer was created. Time written to the wire will be
|
|
|