Index: net/spdy/spdy_protocol.h |
diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h |
index 0310d37b1f9860fb4e9c83a66fb1bb53edaacfdc..dde53cecf23621dfcc96dcc959b76bd29aaacddf 100644 |
--- a/net/spdy/spdy_protocol.h |
+++ b/net/spdy/spdy_protocol.h |
@@ -962,6 +962,29 @@ class NET_EXPORT_PRIVATE SpdyAltSvcIR : public SpdyFrameWithStreamIdIR { |
DISALLOW_COPY_AND_ASSIGN(SpdyAltSvcIR); |
}; |
+class NET_EXPORT_PRIVATE SpdyPriorityIR : public SpdyFrameWithStreamIdIR { |
+ public: |
+ explicit SpdyPriorityIR(SpdyStreamId stream_id); |
+ explicit SpdyPriorityIR(SpdyStreamId stream_id, |
+ SpdyStreamId parent_stream_id, |
+ uint8 weight, |
+ bool exclusive); |
+ SpdyStreamId parent_stream_id() const { return parent_stream_id_; } |
+ void set_parent_stream_id(SpdyStreamId id) { parent_stream_id_ = id; } |
+ uint8 weight() const { return weight_; } |
+ void set_weight(uint8 weight) { weight_ = weight; } |
+ bool exclusive() const { return exclusive_; } |
+ void set_exclusive(bool exclusive) { exclusive_ = exclusive; } |
+ |
+ virtual void Visit(SpdyFrameVisitor* visitor) const OVERRIDE; |
+ |
+ private: |
+ SpdyStreamId parent_stream_id_; |
+ uint8 weight_; |
+ bool exclusive_; |
+ DISALLOW_COPY_AND_ASSIGN(SpdyPriorityIR); |
+}; |
+ |
// ------------------------------------------------------------------------- |
// Wrapper classes for various SPDY frames. |
@@ -1023,6 +1046,7 @@ class SpdyFrameVisitor { |
virtual void VisitPushPromise(const SpdyPushPromiseIR& push_promise) = 0; |
virtual void VisitContinuation(const SpdyContinuationIR& continuation) = 0; |
virtual void VisitAltSvc(const SpdyAltSvcIR& altsvc) = 0; |
+ virtual void VisitPriority(const SpdyPriorityIR& priority) = 0; |
virtual void VisitData(const SpdyDataIR& data) = 0; |
protected: |