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

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

Issue 1468773002: Changing from QuicPriority to SpdyPriority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107610692
Patch Set: Created 5 years, 1 month 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_session_test.cc ('k') | net/quic/quic_spdy_session.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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_SPDY_SESSION_H_ 5 #ifndef NET_QUIC_QUIC_SPDY_SESSION_H_
6 #define NET_QUIC_QUIC_SPDY_SESSION_H_ 6 #define NET_QUIC_QUIC_SPDY_SESSION_H_
7 7
8 #include "net/quic/quic_headers_stream.h" 8 #include "net/quic/quic_headers_stream.h"
9 #include "net/quic/quic_session.h" 9 #include "net/quic/quic_session.h"
10 #include "net/quic/quic_spdy_stream.h" 10 #include "net/quic/quic_spdy_stream.h"
(...skipping 13 matching lines...) Expand all
24 24
25 void Initialize() override; 25 void Initialize() override;
26 26
27 // Called by |headers_stream_| when headers have been received for a stream. 27 // Called by |headers_stream_| when headers have been received for a stream.
28 virtual void OnStreamHeaders(QuicStreamId stream_id, 28 virtual void OnStreamHeaders(QuicStreamId stream_id,
29 StringPiece headers_data); 29 StringPiece headers_data);
30 // Called by |headers_stream_| when headers with a priority have been 30 // Called by |headers_stream_| when headers with a priority have been
31 // received for this stream. This method will only be called for server 31 // received for this stream. This method will only be called for server
32 // streams. 32 // streams.
33 virtual void OnStreamHeadersPriority(QuicStreamId stream_id, 33 virtual void OnStreamHeadersPriority(QuicStreamId stream_id,
34 QuicPriority priority); 34 SpdyPriority priority);
35 // Called by |headers_stream_| when headers have been completely received 35 // Called by |headers_stream_| when headers have been completely received
36 // for a stream. |fin| will be true if the fin flag was set in the headers 36 // for a stream. |fin| will be true if the fin flag was set in the headers
37 // frame. 37 // frame.
38 virtual void OnStreamHeadersComplete(QuicStreamId stream_id, 38 virtual void OnStreamHeadersComplete(QuicStreamId stream_id,
39 bool fin, 39 bool fin,
40 size_t frame_len); 40 size_t frame_len);
41 41
42 // Writes |headers| for the stream |id| to the dedicated headers stream. 42 // Writes |headers| for the stream |id| to the dedicated headers stream.
43 // If |fin| is true, then no more data will be sent for the stream |id|. 43 // If |fin| is true, then no more data will be sent for the stream |id|.
44 // If provided, |ack_notifier_delegate| will be registered to be notified when 44 // If provided, |ack_notifier_delegate| will be registered to be notified when
45 // we have seen ACKs for all packets resulting from this call. 45 // we have seen ACKs for all packets resulting from this call.
46 size_t WriteHeaders(QuicStreamId id, 46 size_t WriteHeaders(QuicStreamId id,
47 const SpdyHeaderBlock& headers, 47 const SpdyHeaderBlock& headers,
48 bool fin, 48 bool fin,
49 QuicPriority priority, 49 SpdyPriority priority,
50 QuicAckListenerInterface* ack_notifier_delegate); 50 QuicAckListenerInterface* ack_notifier_delegate);
51 51
52 QuicHeadersStream* headers_stream() { return headers_stream_.get(); } 52 QuicHeadersStream* headers_stream() { return headers_stream_.get(); }
53 53
54 // Called when Head of Line Blocking happens in the headers stream. 54 // Called when Head of Line Blocking happens in the headers stream.
55 // |delta| indicates how long that piece of data has been blocked. 55 // |delta| indicates how long that piece of data has been blocked.
56 virtual void OnHeadersHeadOfLineBlocking(QuicTime::Delta delta); 56 virtual void OnHeadersHeadOfLineBlocking(QuicTime::Delta delta);
57 57
58 protected: 58 protected:
59 // Override CreateIncomingDynamicStream() and CreateOutgoingDynamicStream() 59 // Override CreateIncomingDynamicStream() and CreateOutgoingDynamicStream()
60 // with QuicSpdyStream return type to make sure that all data streams are 60 // with QuicSpdyStream return type to make sure that all data streams are
61 // QuicSpdyStreams. 61 // QuicSpdyStreams.
62 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override = 0; 62 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override = 0;
63 QuicSpdyStream* CreateOutgoingDynamicStream() override = 0; 63 QuicSpdyStream* CreateOutgoingDynamicStream() override = 0;
64 64
65 QuicSpdyStream* GetSpdyDataStream(const QuicStreamId stream_id); 65 QuicSpdyStream* GetSpdyDataStream(const QuicStreamId stream_id);
66 66
67 private: 67 private:
68 friend class test::QuicSpdySessionPeer; 68 friend class test::QuicSpdySessionPeer;
69 69
70 scoped_ptr<QuicHeadersStream> headers_stream_; 70 scoped_ptr<QuicHeadersStream> headers_stream_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(QuicSpdySession); 72 DISALLOW_COPY_AND_ASSIGN(QuicSpdySession);
73 }; 73 };
74 74
75 } // namespace net 75 } // namespace net
76 76
77 #endif // NET_QUIC_QUIC_SPDY_SESSION_H_ 77 #endif // NET_QUIC_QUIC_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698