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

Side by Side Diff: net/quic/quartc/quartc_session.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/quartc/quartc_packet_writer.h ('k') | net/quic/quartc/quartc_session_interface.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_QUARTC_QUARTC_SESSION_H_ 5 #ifndef NET_QUIC_QUARTC_QUARTC_SESSION_H_
6 #define NET_QUIC_QUARTC_QUARTC_SESSION_H_ 6 #define NET_QUIC_QUARTC_QUARTC_SESSION_H_
7 7
8 #include "net/base/net_export.h"
9 #include "net/quic/core/quic_crypto_client_stream.h" 8 #include "net/quic/core/quic_crypto_client_stream.h"
10 #include "net/quic/core/quic_crypto_server_stream.h" 9 #include "net/quic/core/quic_crypto_server_stream.h"
11 #include "net/quic/core/quic_crypto_stream.h" 10 #include "net/quic/core/quic_crypto_stream.h"
12 #include "net/quic/core/quic_session.h" 11 #include "net/quic/core/quic_session.h"
12 #include "net/quic/platform/api/quic_export.h"
13 #include "net/quic/platform/impl/quic_chromium_clock.h" 13 #include "net/quic/platform/impl/quic_chromium_clock.h"
14 #include "net/quic/quartc/quartc_session_interface.h" 14 #include "net/quic/quartc/quartc_session_interface.h"
15 #include "net/quic/quartc/quartc_stream.h" 15 #include "net/quic/quartc/quartc_stream.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 // A helper class is used by the QuicCryptoServerStream. 19 // A helper class is used by the QuicCryptoServerStream.
20 class QuartcCryptoServerStreamHelper : public QuicCryptoServerStream::Helper { 20 class QuartcCryptoServerStreamHelper : public QuicCryptoServerStream::Helper {
21 public: 21 public:
22 QuicConnectionId GenerateConnectionIdForReject( 22 QuicConnectionId GenerateConnectionIdForReject(
23 QuicConnectionId connection_id) const override; 23 QuicConnectionId connection_id) const override;
24 24
25 bool CanAcceptClientHello(const CryptoHandshakeMessage& message, 25 bool CanAcceptClientHello(const CryptoHandshakeMessage& message,
26 const QuicSocketAddress& self_address, 26 const QuicSocketAddress& self_address,
27 std::string* error_details) const override; 27 std::string* error_details) const override;
28 }; 28 };
29 29
30 class NET_EXPORT_PRIVATE QuartcSession 30 class QUIC_EXPORT_PRIVATE QuartcSession
31 : public QuicSession, 31 : public QuicSession,
32 public QuartcSessionInterface, 32 public QuartcSessionInterface,
33 public QuicCryptoClientStream::ProofHandler { 33 public QuicCryptoClientStream::ProofHandler {
34 public: 34 public:
35 QuartcSession(std::unique_ptr<QuicConnection> connection, 35 QuartcSession(std::unique_ptr<QuicConnection> connection,
36 const QuicConfig& config, 36 const QuicConfig& config,
37 const std::string& unique_remote_server_id, 37 const std::string& unique_remote_server_id,
38 Perspective perspective, 38 Perspective perspective,
39 QuicConnectionHelperInterface* helper); 39 QuicConnectionHelperInterface* helper);
40 ~QuartcSession() override; 40 ~QuartcSession() override;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_; 115 std::unique_ptr<QuicCryptoClientConfig> quic_crypto_client_config_;
116 // Config for QUIC crypto server stream, used by the server. 116 // Config for QUIC crypto server stream, used by the server.
117 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_; 117 std::unique_ptr<QuicCryptoServerConfig> quic_crypto_server_config_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(QuartcSession); 119 DISALLOW_COPY_AND_ASSIGN(QuartcSession);
120 }; 120 };
121 121
122 } // namespace net 122 } // namespace net
123 123
124 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_ 124 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quartc/quartc_packet_writer.h ('k') | net/quic/quartc/quartc_session_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698