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

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

Issue 11364068: Add a QuicHttpStream class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make GetPeerAddress const Created 8 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 | Annotate | Revision Log
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 #ifndef NET_QUIC_QUIC_CRYPTO_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_STREAM_H_
7 7
8 #include "net/quic/crypto/crypto_framer.h" 8 #include "net/quic/crypto/crypto_framer.h"
9 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 #include "net/quic/reliable_quic_stream.h" 10 #include "net/quic/reliable_quic_stream.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Sends |message| to the peer. 41 // Sends |message| to the peer.
42 void SendHandshakeMessage(const CryptoHandshakeMessage& message); 42 void SendHandshakeMessage(const CryptoHandshakeMessage& message);
43 43
44 bool handshake_complete() { return handshake_complete_; } 44 bool handshake_complete() { return handshake_complete_; }
45 45
46 protected: 46 protected:
47 // Closes the connection 47 // Closes the connection
48 void CloseConnection(QuicErrorCode error); 48 void CloseConnection(QuicErrorCode error);
49 49
50 void set_handshake_complete(bool complete) { 50 void SetHandshakeComplete(QuicErrorCode error);
51 handshake_complete_ = complete;
52 }
53 51
54 private: 52 private:
55 CryptoFramer crypto_framer_; 53 CryptoFramer crypto_framer_;
56 bool handshake_complete_; 54 bool handshake_complete_;
57 55
58 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream); 56 DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream);
59 }; 57 };
60 58
61 } // namespace net 59 } // namespace net
62 60
63 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_ 61 #endif // NET_QUIC_QUIC_CRYPTO_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698