Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: net/quic/quic_headers_stream.cc

Issue 1263803002: Replace SpdyNameValueBlock typedef with SpdyHeaderBlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "net/quic/quic_headers_stream.h" 5 #include "net/quic/quic_headers_stream.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "net/quic/quic_spdy_session.h" 8 #include "net/quic/quic_spdy_session.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 QuicHeadersStream::~QuicHeadersStream() {} 185 QuicHeadersStream::~QuicHeadersStream() {}
186 186
187 size_t QuicHeadersStream::WriteHeaders( 187 size_t QuicHeadersStream::WriteHeaders(
188 QuicStreamId stream_id, 188 QuicStreamId stream_id,
189 const SpdyHeaderBlock& headers, 189 const SpdyHeaderBlock& headers,
190 bool fin, 190 bool fin,
191 QuicPriority priority, 191 QuicPriority priority,
192 QuicAckNotifier::DelegateInterface* ack_notifier_delegate) { 192 QuicAckNotifier::DelegateInterface* ack_notifier_delegate) {
193 SpdyHeadersIR headers_frame(stream_id); 193 SpdyHeadersIR headers_frame(stream_id);
194 headers_frame.set_name_value_block(headers); 194 headers_frame.set_header_block(headers);
195 headers_frame.set_fin(fin); 195 headers_frame.set_fin(fin);
196 if (session()->perspective() == Perspective::IS_CLIENT) { 196 if (session()->perspective() == Perspective::IS_CLIENT) {
197 headers_frame.set_has_priority(true); 197 headers_frame.set_has_priority(true);
198 headers_frame.set_priority(priority); 198 headers_frame.set_priority(priority);
199 } 199 }
200 scoped_ptr<SpdySerializedFrame> frame( 200 scoped_ptr<SpdySerializedFrame> frame(
201 spdy_framer_.SerializeFrame(headers_frame)); 201 spdy_framer_.SerializeFrame(headers_frame));
202 WriteOrBufferData(StringPiece(frame->data(), frame->size()), false, 202 WriteOrBufferData(StringPiece(frame->data(), frame->size()), false,
203 ack_notifier_delegate); 203 ack_notifier_delegate);
204 return frame->size(); 204 return frame->size();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) { 258 void QuicHeadersStream::OnCompressedFrameSize(size_t frame_len) {
259 frame_len_ += frame_len; 259 frame_len_ += frame_len;
260 } 260 }
261 261
262 bool QuicHeadersStream::IsConnected() { 262 bool QuicHeadersStream::IsConnected() {
263 return session()->connection()->connected(); 263 return session()->connection()->connected();
264 } 264 }
265 265
266 } // namespace net 266 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698