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

Side by Side Diff: net/spdy/core/spdy_protocol.cc

Issue 2849713002: Remove one layer of abstraction from HTTP/2 frame representations. (Closed)
Patch Set: Created 3 years, 7 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 | « net/spdy/core/spdy_protocol.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/spdy/core/spdy_protocol.h" 5 #include "net/spdy/core/spdy_protocol.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "net/spdy/core/spdy_bug_tracker.h" 10 #include "net/spdy/core/spdy_bug_tracker.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const { 248 void SpdyDataIR::Visit(SpdyFrameVisitor* visitor) const {
249 return visitor->VisitData(*this); 249 return visitor->VisitData(*this);
250 } 250 }
251 251
252 SpdyFrameType SpdyDataIR::frame_type() const { 252 SpdyFrameType SpdyDataIR::frame_type() const {
253 return SpdyFrameType::DATA; 253 return SpdyFrameType::DATA;
254 } 254 }
255 255
256 SpdyRstStreamIR::SpdyRstStreamIR(SpdyStreamId stream_id, 256 SpdyRstStreamIR::SpdyRstStreamIR(SpdyStreamId stream_id,
257 SpdyErrorCode error_code) 257 SpdyErrorCode error_code)
258 : SpdyFrameWithStreamIdIR(stream_id) { 258 : SpdyFrameIR(stream_id) {
259 set_error_code(error_code); 259 set_error_code(error_code);
260 } 260 }
261 261
262 SpdyRstStreamIR::~SpdyRstStreamIR() {} 262 SpdyRstStreamIR::~SpdyRstStreamIR() {}
263 263
264 void SpdyRstStreamIR::Visit(SpdyFrameVisitor* visitor) const { 264 void SpdyRstStreamIR::Visit(SpdyFrameVisitor* visitor) const {
265 return visitor->VisitRstStream(*this); 265 return visitor->VisitRstStream(*this);
266 } 266 }
267 267
268 SpdyFrameType SpdyRstStreamIR::frame_type() const { 268 SpdyFrameType SpdyRstStreamIR::frame_type() const {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 void SpdyGoAwayIR::Visit(SpdyFrameVisitor* visitor) const { 318 void SpdyGoAwayIR::Visit(SpdyFrameVisitor* visitor) const {
319 return visitor->VisitGoAway(*this); 319 return visitor->VisitGoAway(*this);
320 } 320 }
321 321
322 SpdyFrameType SpdyGoAwayIR::frame_type() const { 322 SpdyFrameType SpdyGoAwayIR::frame_type() const {
323 return SpdyFrameType::GOAWAY; 323 return SpdyFrameType::GOAWAY;
324 } 324 }
325 325
326 SpdyContinuationIR::SpdyContinuationIR(SpdyStreamId stream_id) 326 SpdyContinuationIR::SpdyContinuationIR(SpdyStreamId stream_id)
327 : SpdyFrameWithStreamIdIR(stream_id), end_headers_(false) { 327 : SpdyFrameIR(stream_id), end_headers_(false) {
328 encoding_ = SpdyMakeUnique<SpdyString>(); 328 encoding_ = SpdyMakeUnique<SpdyString>();
329 } 329 }
330 330
331 SpdyContinuationIR::~SpdyContinuationIR() {} 331 SpdyContinuationIR::~SpdyContinuationIR() {}
332 332
333 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const { 333 void SpdyContinuationIR::Visit(SpdyFrameVisitor* visitor) const {
334 return visitor->VisitContinuation(*this); 334 return visitor->VisitContinuation(*this);
335 } 335 }
336 336
337 SpdyFrameType SpdyContinuationIR::frame_type() const { 337 SpdyFrameType SpdyContinuationIR::frame_type() const {
(...skipping 17 matching lines...) Expand all
355 } 355 }
356 356
357 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const { 357 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const {
358 return visitor->VisitPushPromise(*this); 358 return visitor->VisitPushPromise(*this);
359 } 359 }
360 360
361 SpdyFrameType SpdyPushPromiseIR::frame_type() const { 361 SpdyFrameType SpdyPushPromiseIR::frame_type() const {
362 return SpdyFrameType::PUSH_PROMISE; 362 return SpdyFrameType::PUSH_PROMISE;
363 } 363 }
364 364
365 SpdyAltSvcIR::SpdyAltSvcIR(SpdyStreamId stream_id) 365 SpdyAltSvcIR::SpdyAltSvcIR(SpdyStreamId stream_id) : SpdyFrameIR(stream_id) {}
366 : SpdyFrameWithStreamIdIR(stream_id) {
367 }
368 366
369 SpdyAltSvcIR::~SpdyAltSvcIR() { 367 SpdyAltSvcIR::~SpdyAltSvcIR() {
370 } 368 }
371 369
372 void SpdyAltSvcIR::Visit(SpdyFrameVisitor* visitor) const { 370 void SpdyAltSvcIR::Visit(SpdyFrameVisitor* visitor) const {
373 return visitor->VisitAltSvc(*this); 371 return visitor->VisitAltSvc(*this);
374 } 372 }
375 373
376 SpdyFrameType SpdyAltSvcIR::frame_type() const { 374 SpdyFrameType SpdyAltSvcIR::frame_type() const {
377 return SpdyFrameType::ALTSVC; 375 return SpdyFrameType::ALTSVC;
378 } 376 }
379 377
380 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { 378 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const {
381 return visitor->VisitPriority(*this); 379 return visitor->VisitPriority(*this);
382 } 380 }
383 381
384 SpdyFrameType SpdyPriorityIR::frame_type() const { 382 SpdyFrameType SpdyPriorityIR::frame_type() const {
385 return SpdyFrameType::PRIORITY; 383 return SpdyFrameType::PRIORITY;
386 } 384 }
387 385
388 } // namespace net 386 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/spdy_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698