OLD | NEW |
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" | |
10 #include "net/spdy/core/spdy_bug_tracker.h" | 9 #include "net/spdy/core/spdy_bug_tracker.h" |
11 | 10 |
12 namespace net { | 11 namespace net { |
13 | 12 |
14 const char* const kHttp2ConnectionHeaderPrefix = | 13 const char* const kHttp2ConnectionHeaderPrefix = |
15 "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"; | 14 "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"; |
16 | 15 |
17 std::ostream& operator<<(std::ostream& out, SpdySettingsIds id) { | 16 std::ostream& operator<<(std::ostream& out, SpdySettingsIds id) { |
18 return out << static_cast<uint16_t>(id); | 17 return out << static_cast<uint16_t>(id); |
19 } | 18 } |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const { | 356 void SpdyPushPromiseIR::Visit(SpdyFrameVisitor* visitor) const { |
358 return visitor->VisitPushPromise(*this); | 357 return visitor->VisitPushPromise(*this); |
359 } | 358 } |
360 | 359 |
361 SpdyFrameType SpdyPushPromiseIR::frame_type() const { | 360 SpdyFrameType SpdyPushPromiseIR::frame_type() const { |
362 return SpdyFrameType::PUSH_PROMISE; | 361 return SpdyFrameType::PUSH_PROMISE; |
363 } | 362 } |
364 | 363 |
365 SpdyAltSvcIR::SpdyAltSvcIR(SpdyStreamId stream_id) : SpdyFrameIR(stream_id) {} | 364 SpdyAltSvcIR::SpdyAltSvcIR(SpdyStreamId stream_id) : SpdyFrameIR(stream_id) {} |
366 | 365 |
367 SpdyAltSvcIR::~SpdyAltSvcIR() { | 366 SpdyAltSvcIR::~SpdyAltSvcIR() {} |
368 } | |
369 | 367 |
370 void SpdyAltSvcIR::Visit(SpdyFrameVisitor* visitor) const { | 368 void SpdyAltSvcIR::Visit(SpdyFrameVisitor* visitor) const { |
371 return visitor->VisitAltSvc(*this); | 369 return visitor->VisitAltSvc(*this); |
372 } | 370 } |
373 | 371 |
374 SpdyFrameType SpdyAltSvcIR::frame_type() const { | 372 SpdyFrameType SpdyAltSvcIR::frame_type() const { |
375 return SpdyFrameType::ALTSVC; | 373 return SpdyFrameType::ALTSVC; |
376 } | 374 } |
377 | 375 |
378 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { | 376 void SpdyPriorityIR::Visit(SpdyFrameVisitor* visitor) const { |
379 return visitor->VisitPriority(*this); | 377 return visitor->VisitPriority(*this); |
380 } | 378 } |
381 | 379 |
382 SpdyFrameType SpdyPriorityIR::frame_type() const { | 380 SpdyFrameType SpdyPriorityIR::frame_type() const { |
383 return SpdyFrameType::PRIORITY; | 381 return SpdyFrameType::PRIORITY; |
384 } | 382 } |
385 | 383 |
386 } // namespace net | 384 } // namespace net |
OLD | NEW |