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

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

Issue 1017973002: Implement working tests for the simple QUIC client classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 9 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/net.gypi ('k') | net/tools/quic/quic_simple_client_session_test.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 // 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 21 matching lines...) Expand all
32 } // namespace test 32 } // namespace test
33 33
34 class IPEndPoint; 34 class IPEndPoint;
35 class QuicSession; 35 class QuicSession;
36 class SSLInfo; 36 class SSLInfo;
37 37
38 // All this does right now is send data to subclasses via the sequencer. 38 // All this does right now is send data to subclasses via the sequencer.
39 class NET_EXPORT_PRIVATE QuicDataStream : public ReliableQuicStream { 39 class NET_EXPORT_PRIVATE QuicDataStream : public ReliableQuicStream {
40 public: 40 public:
41 // Visitor receives callbacks from the stream. 41 // Visitor receives callbacks from the stream.
42 class Visitor { 42 class NET_EXPORT_PRIVATE Visitor {
43 public: 43 public:
44 Visitor() {} 44 Visitor() {}
45 45
46 // Called when the stream is closed. 46 // Called when the stream is closed.
47 virtual void OnClose(QuicDataStream* stream) = 0; 47 virtual void OnClose(QuicDataStream* stream) = 0;
48 48
49 protected: 49 protected:
50 virtual ~Visitor() {} 50 virtual ~Visitor() {}
51 51
52 private: 52 private:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Contains a copy of the decompressed headers until they are consumed 135 // Contains a copy of the decompressed headers until they are consumed
136 // via ProcessData or Readv. 136 // via ProcessData or Readv.
137 std::string decompressed_headers_; 137 std::string decompressed_headers_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(QuicDataStream); 139 DISALLOW_COPY_AND_ASSIGN(QuicDataStream);
140 }; 140 };
141 141
142 } // namespace net 142 } // namespace net
143 143
144 #endif // NET_QUIC_QUIC_DATA_STREAM_H_ 144 #endif // NET_QUIC_QUIC_DATA_STREAM_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/tools/quic/quic_simple_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698