OLD | NEW |
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_INTERFACE_H_ | 5 #ifndef NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ |
6 #define NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ | 6 #define NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "net/base/net_export.h" | 12 #include "net/quic/platform/api/quic_export.h" |
13 #include "net/quic/quartc/quartc_stream_interface.h" | 13 #include "net/quic/quartc/quartc_stream_interface.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 // Given a PacketTransport, provides a way to send and receive separate streams | 17 // Given a PacketTransport, provides a way to send and receive separate streams |
18 // of reliable, in-order, encrypted data. For example, this can build on top of | 18 // of reliable, in-order, encrypted data. For example, this can build on top of |
19 // a WebRTC IceTransport for sending and receiving data over QUIC. | 19 // a WebRTC IceTransport for sending and receiving data over QUIC. |
20 class NET_EXPORT_PRIVATE QuartcSessionInterface { | 20 class QUIC_EXPORT_PRIVATE QuartcSessionInterface { |
21 public: | 21 public: |
22 virtual ~QuartcSessionInterface() {} | 22 virtual ~QuartcSessionInterface() {} |
23 | 23 |
24 virtual void StartCryptoHandshake() = 0; | 24 virtual void StartCryptoHandshake() = 0; |
25 | 25 |
26 // Only needed when using SRTP with QuicTransport | 26 // Only needed when using SRTP with QuicTransport |
27 // Key Exporter interface from RFC 5705 | 27 // Key Exporter interface from RFC 5705 |
28 // Arguments are: | 28 // Arguments are: |
29 // label -- the exporter label. | 29 // label -- the exporter label. |
30 // part of the RFC defining each exporter usage (IN) | 30 // part of the RFC defining each exporter usage (IN) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // TODO(zhihuang): Add proof verification. | 93 // TODO(zhihuang): Add proof verification. |
94 }; | 94 }; |
95 | 95 |
96 // The |delegate| is not owned by QuartcSession. | 96 // The |delegate| is not owned by QuartcSession. |
97 virtual void SetDelegate(Delegate* delegate) = 0; | 97 virtual void SetDelegate(Delegate* delegate) = 0; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace net | 100 } // namespace net |
101 | 101 |
102 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ | 102 #endif // NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ |
OLD | NEW |