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

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

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 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
« no previous file with comments | « net/quic/core/quic_crypto_client_stream.h ('k') | net/quic/core/quic_crypto_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 #ifndef NET_QUIC_CORE_QUIC_CRYPTO_SERVER_STREAM_H_ 5 #ifndef NET_QUIC_CORE_QUIC_CRYPTO_SERVER_STREAM_H_
6 #define NET_QUIC_CORE_QUIC_CRYPTO_SERVER_STREAM_H_ 6 #define NET_QUIC_CORE_QUIC_CRYPTO_SERVER_STREAM_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "net/base/net_export.h"
14 #include "net/quic/core/crypto/crypto_handshake.h" 13 #include "net/quic/core/crypto/crypto_handshake.h"
15 #include "net/quic/core/crypto/quic_compressed_certs_cache.h" 14 #include "net/quic/core/crypto/quic_compressed_certs_cache.h"
16 #include "net/quic/core/crypto/quic_crypto_server_config.h" 15 #include "net/quic/core/crypto/quic_crypto_server_config.h"
17 #include "net/quic/core/proto/source_address_token.pb.h" 16 #include "net/quic/core/proto/source_address_token.pb.h"
18 #include "net/quic/core/quic_config.h" 17 #include "net/quic/core/quic_config.h"
19 #include "net/quic/core/quic_crypto_stream.h" 18 #include "net/quic/core/quic_crypto_stream.h"
19 #include "net/quic/platform/api/quic_export.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 class CachedNetworkParameters; 23 class CachedNetworkParameters;
24 class CryptoHandshakeMessage; 24 class CryptoHandshakeMessage;
25 class QuicCryptoServerConfig; 25 class QuicCryptoServerConfig;
26 class QuicCryptoServerStreamBase; 26 class QuicCryptoServerStreamBase;
27 27
28 namespace test { 28 namespace test {
29 class CryptoTestUtils; 29 class CryptoTestUtils;
30 class QuicCryptoServerStreamPeer; 30 class QuicCryptoServerStreamPeer;
31 } // namespace test 31 } // namespace test
32 32
33 // TODO(alyssar) see what can be moved out of QuicCryptoServerStream with 33 // TODO(alyssar) see what can be moved out of QuicCryptoServerStream with
34 // various code and test refactoring. 34 // various code and test refactoring.
35 class NET_EXPORT_PRIVATE QuicCryptoServerStreamBase : public QuicCryptoStream { 35 class QUIC_EXPORT_PRIVATE QuicCryptoServerStreamBase : public QuicCryptoStream {
36 public: 36 public:
37 explicit QuicCryptoServerStreamBase(QuicSession* session); 37 explicit QuicCryptoServerStreamBase(QuicSession* session);
38 38
39 ~QuicCryptoServerStreamBase() override {} 39 ~QuicCryptoServerStreamBase() override {}
40 40
41 // Cancel any outstanding callbacks, such as asynchronous validation of client 41 // Cancel any outstanding callbacks, such as asynchronous validation of client
42 // hello. 42 // hello.
43 virtual void CancelOutstandingCallbacks() = 0; 43 virtual void CancelOutstandingCallbacks() = 0;
44 44
45 // GetBase64SHA256ClientChannelID sets |*output| to the base64 encoded, 45 // GetBase64SHA256ClientChannelID sets |*output| to the base64 encoded,
(...skipping 17 matching lines...) Expand all
63 const = 0; 63 const = 0;
64 virtual void SetPreviousCachedNetworkParams( 64 virtual void SetPreviousCachedNetworkParams(
65 CachedNetworkParameters cached_network_params) = 0; 65 CachedNetworkParameters cached_network_params) = 0;
66 66
67 // Checks the options on the handshake-message to see whether the 67 // Checks the options on the handshake-message to see whether the
68 // peer supports stateless-rejects. 68 // peer supports stateless-rejects.
69 static bool DoesPeerSupportStatelessRejects( 69 static bool DoesPeerSupportStatelessRejects(
70 const CryptoHandshakeMessage& message); 70 const CryptoHandshakeMessage& message);
71 }; 71 };
72 72
73 class NET_EXPORT_PRIVATE QuicCryptoServerStream 73 class QUIC_EXPORT_PRIVATE QuicCryptoServerStream
74 : public QuicCryptoServerStreamBase { 74 : public QuicCryptoServerStreamBase {
75 public: 75 public:
76 class Helper { 76 class Helper {
77 public: 77 public:
78 virtual ~Helper() {} 78 virtual ~Helper() {}
79 79
80 // Given the current connection_id, generates a new ConnectionId to 80 // Given the current connection_id, generates a new ConnectionId to
81 // be returned with a stateless reject. 81 // be returned with a stateless reject.
82 virtual QuicConnectionId GenerateConnectionIdForReject( 82 virtual QuicConnectionId GenerateConnectionIdForReject(
83 QuicConnectionId connection_id) const = 0; 83 QuicConnectionId connection_id) const = 0;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // ProcessClientHello and forward it to 273 // ProcessClientHello and forward it to
274 // FinishProcessingHandshakeMessageAfterProcessClientHello. 274 // FinishProcessingHandshakeMessageAfterProcessClientHello.
275 ProcessClientHelloCallback* process_client_hello_cb_; 275 ProcessClientHelloCallback* process_client_hello_cb_;
276 276
277 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 277 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
278 }; 278 };
279 279
280 } // namespace net 280 } // namespace net
281 281
282 #endif // NET_QUIC_CORE_QUIC_CRYPTO_SERVER_STREAM_H_ 282 #endif // NET_QUIC_CORE_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_crypto_client_stream.h ('k') | net/quic/core/quic_crypto_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698