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

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

Issue 111323006: QUIC - minor cleanup changes found while merging chromium code into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added missing explicit Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/quic/reliable_quic_stream.h » ('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) 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 // The base class for streams which deliver data to/from an application. 5 // The base class for streams which deliver data to/from an application.
6 // In each direction, the data on such a stream first contains compressed 6 // In each direction, the data on such a stream first contains compressed
7 // headers then body data. 7 // headers then body data.
8 8
9 #ifndef NET_QUIC_QUIC_DATA_STREAM_H_ 9 #ifndef NET_QUIC_QUIC_DATA_STREAM_H_
10 #define NET_QUIC_QUIC_DATA_STREAM_H_ 10 #define NET_QUIC_QUIC_DATA_STREAM_H_
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 private: 51 private:
52 DISALLOW_COPY_AND_ASSIGN(Visitor); 52 DISALLOW_COPY_AND_ASSIGN(Visitor);
53 }; 53 };
54 54
55 QuicDataStream(QuicStreamId id, QuicSession* session); 55 QuicDataStream(QuicStreamId id, QuicSession* session);
56 56
57 virtual ~QuicDataStream(); 57 virtual ~QuicDataStream();
58 58
59 // ReliableQuicStream implementation 59 // ReliableQuicStream implementation
60 virtual void OnClose() OVERRIDE; 60 virtual void OnClose() OVERRIDE;
61 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE;
61 // By default, this is the same as priority(), however it allows streams 62 // By default, this is the same as priority(), however it allows streams
62 // to temporarily alter effective priority. For example if a SPDY stream has 63 // to temporarily alter effective priority. For example if a SPDY stream has
63 // compressed but not written headers it can write the headers with a higher 64 // compressed but not written headers it can write the headers with a higher
64 // priority. 65 // priority.
65 virtual QuicPriority EffectivePriority() const OVERRIDE; 66 virtual QuicPriority EffectivePriority() const OVERRIDE;
66 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE;
67 67
68 // QuicSpdyDecompressor::Visitor implementation. 68 // QuicSpdyDecompressor::Visitor implementation.
69 virtual bool OnDecompressedData(base::StringPiece data) OVERRIDE; 69 virtual bool OnDecompressedData(base::StringPiece data) OVERRIDE;
70 virtual void OnDecompressionError() OVERRIDE; 70 virtual void OnDecompressionError() OVERRIDE;
71 71
72 virtual uint32 ProcessData(const char* data, uint32 data_len) = 0; 72 virtual uint32 ProcessData(const char* data, uint32 data_len) = 0;
73 73
74 // This block of functions wraps the sequencer's functions of the same 74 // This block of functions wraps the sequencer's functions of the same
75 // name. These methods return uncompressed data until that has 75 // name. These methods return uncompressed data until that has
76 // been fully processed. Then they simply delegate to the sequencer. 76 // been fully processed. Then they simply delegate to the sequencer.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool decompression_failed_; 131 bool decompression_failed_;
132 // True if the priority has been read, false otherwise. 132 // True if the priority has been read, false otherwise.
133 bool priority_parsed_; 133 bool priority_parsed_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); 135 DISALLOW_COPY_AND_ASSIGN(QuicDataStream);
136 }; 136 };
137 137
138 } // namespace net 138 } // namespace net
139 139
140 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ 140 #endif // NET_QUIC_QUIC_DATA_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/reliable_quic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698