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

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

Issue 288313003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: implemented rch's comments Created 6 years, 7 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
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_SERVER_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 uint8 num_handshake_messages() const { return num_handshake_messages_; } 45 uint8 num_handshake_messages() const { return num_handshake_messages_; }
46 46
47 protected: 47 protected:
48 virtual QuicErrorCode ProcessClientHello( 48 virtual QuicErrorCode ProcessClientHello(
49 const CryptoHandshakeMessage& message, 49 const CryptoHandshakeMessage& message,
50 const ValidateClientHelloResultCallback::Result& result, 50 const ValidateClientHelloResultCallback::Result& result,
51 CryptoHandshakeMessage* reply, 51 CryptoHandshakeMessage* reply,
52 std::string* error_details); 52 std::string* error_details);
53 53
54 // Hook that allows the server to set QuicConfig defaults just
55 // before going through the parameter negotiation step.
56 virtual void OverrideQuicConfigDefaults(QuicConfig* config);
57
54 private: 58 private:
55 friend class test::CryptoTestUtils; 59 friend class test::CryptoTestUtils;
56 60
57 class ValidateCallback : public ValidateClientHelloResultCallback { 61 class ValidateCallback : public ValidateClientHelloResultCallback {
58 public: 62 public:
59 explicit ValidateCallback(QuicCryptoServerStream* parent); 63 explicit ValidateCallback(QuicCryptoServerStream* parent);
60 // To allow the parent to detach itself from the callback before deletion. 64 // To allow the parent to detach itself from the callback before deletion.
61 void Cancel(); 65 void Cancel();
62 66
63 // From ValidateClientHelloResultCallback 67 // From ValidateClientHelloResultCallback
(...skipping 23 matching lines...) Expand all
87 ValidateCallback* validate_client_hello_cb_; 91 ValidateCallback* validate_client_hello_cb_;
88 92
89 uint8 num_handshake_messages_; 93 uint8 num_handshake_messages_;
90 94
91 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 95 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
92 }; 96 };
93 97
94 } // namespace net 98 } // namespace net
95 99
96 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 100 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698