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

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

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/quic/quic_framer_test.cc ('k') | net/quic/quic_headers_stream.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 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_
6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/quic/quic_protocol.h" 11 #include "net/quic/quic_protocol.h"
12 #include "net/quic/reliable_quic_stream.h" 12 #include "net/quic/reliable_quic_stream.h"
13 #include "net/spdy/spdy_framer.h" 13 #include "net/spdy/spdy_framer.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 // Headers in QUIC are sent as SPDY SYN_STREAM or SYN_REPLY frames 17 // Headers in QUIC are sent as SPDY SYN_STREAM or SYN_REPLY frames
18 // over a reserved reliable stream with the id 2. Each endpoint (client 18 // over a reserved reliable stream with the id 2. Each endpoint (client
19 // and server) will allocate an instance of QuicHeadersStream to send 19 // and server) will allocate an instance of QuicHeadersStream to send
20 // and receive headers. 20 // and receive headers.
21 class NET_EXPORT_PRIVATE QuicHeadersStream : public ReliableQuicStream { 21 class NET_EXPORT_PRIVATE QuicHeadersStream : public ReliableQuicStream {
22 public: 22 public:
23 explicit QuicHeadersStream(QuicSession* session); 23 explicit QuicHeadersStream(QuicSession* session);
24 virtual ~QuicHeadersStream(); 24 ~QuicHeadersStream() override;
25 25
26 // Writes |headers| for |stream_id| in a SYN_STREAM or SYN_REPLY 26 // Writes |headers| for |stream_id| in a SYN_STREAM or SYN_REPLY
27 // frame to the peer. If |fin| is true, the fin flag will be set on 27 // frame to the peer. If |fin| is true, the fin flag will be set on
28 // the SPDY frame. Returns the size, in bytes, of the resulting 28 // the SPDY frame. Returns the size, in bytes, of the resulting
29 // SPDY frame. 29 // SPDY frame.
30 size_t WriteHeaders( 30 size_t WriteHeaders(
31 QuicStreamId stream_id, 31 QuicStreamId stream_id,
32 const SpdyHeaderBlock& headers, 32 const SpdyHeaderBlock& headers,
33 bool fin, 33 bool fin,
34 QuicAckNotifier::DelegateInterface* ack_notifier_delegate); 34 QuicAckNotifier::DelegateInterface* ack_notifier_delegate);
35 35
36 // ReliableQuicStream implementation 36 // ReliableQuicStream implementation
37 virtual uint32 ProcessRawData(const char* data, uint32 data_len) override; 37 uint32 ProcessRawData(const char* data, uint32 data_len) override;
38 virtual QuicPriority EffectivePriority() const override; 38 QuicPriority EffectivePriority() const override;
39 39
40 private: 40 private:
41 class SpdyFramerVisitor; 41 class SpdyFramerVisitor;
42 42
43 // The following methods are called by the SimpleVisitor. 43 // The following methods are called by the SimpleVisitor.
44 44
45 // Called when a SYN_STREAM frame has been received. 45 // Called when a SYN_STREAM frame has been received.
46 void OnSynStream(SpdyStreamId stream_id, 46 void OnSynStream(SpdyStreamId stream_id,
47 SpdyPriority priority, 47 SpdyPriority priority,
48 bool fin); 48 bool fin);
(...skipping 24 matching lines...) Expand all
73 73
74 SpdyFramer spdy_framer_; 74 SpdyFramer spdy_framer_;
75 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; 75 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); 77 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream);
78 }; 78 };
79 79
80 } // namespace net 80 } // namespace net
81 81
82 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ 82 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698