| Index: net/quic/quic_headers_stream.cc
|
| diff --git a/net/quic/quic_headers_stream.cc b/net/quic/quic_headers_stream.cc
|
| index 8891463e8786bb8026b997cf120506459ebd8f3c..ef13806e7bf5a0919535c90ea4c1f9c6b3a34db3 100644
|
| --- a/net/quic/quic_headers_stream.cc
|
| +++ b/net/quic/quic_headers_stream.cc
|
| @@ -12,6 +12,7 @@
|
| #include "net/quic/quic_header_list.h"
|
| #include "net/quic/quic_spdy_session.h"
|
| #include "net/quic/quic_time.h"
|
| +#include "net/spdy/spdy_protocol.h"
|
|
|
| using base::StringPiece;
|
| using net::HTTP2;
|
| @@ -160,7 +161,7 @@ class QuicHeadersStream::SpdyFramerVisitor
|
|
|
| void OnHeaders(SpdyStreamId stream_id,
|
| bool has_priority,
|
| - SpdyPriority priority,
|
| + int weight,
|
| SpdyStreamId parent_stream_id,
|
| bool exclusive,
|
| bool fin,
|
| @@ -169,6 +170,8 @@ class QuicHeadersStream::SpdyFramerVisitor
|
| return;
|
| }
|
|
|
| + SpdyPriority priority =
|
| + has_priority ? Http2WeightToSpdy3Priority(weight) : 0;
|
| stream_->OnHeaders(stream_id, has_priority, priority, fin);
|
| }
|
|
|
| @@ -268,7 +271,7 @@ size_t QuicHeadersStream::WriteHeaders(QuicStreamId stream_id,
|
| headers_frame.set_fin(fin);
|
| if (session()->perspective() == Perspective::IS_CLIENT) {
|
| headers_frame.set_has_priority(true);
|
| - headers_frame.set_priority(priority);
|
| + headers_frame.set_weight(Spdy3PriorityToHttp2Weight(priority));
|
| }
|
| SpdySerializedFrame frame(spdy_framer_.SerializeFrame(headers_frame));
|
| WriteOrBufferData(StringPiece(frame.data(), frame.size()), false,
|
|
|