| OLD | NEW | 
|---|
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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/quic/core/quic_error_codes.h" | 12 #include "net/quic/core/quic_error_codes.h" | 
| 13 #include "net/quic/core/quic_types.h" | 13 #include "net/quic/core/quic_types.h" | 
|  | 14 #include "net/quic/platform/api/quic_export.h" | 
| 14 #include "net/quic/quartc/quartc_stream_interface.h" | 15 #include "net/quic/quartc/quartc_stream_interface.h" | 
| 15 | 16 | 
| 16 namespace net { | 17 namespace net { | 
| 17 | 18 | 
| 18 // Given a PacketTransport, provides a way to send and receive separate streams | 19 // Given a PacketTransport, provides a way to send and receive separate streams | 
| 19 // of reliable, in-order, encrypted data. For example, this can build on top of | 20 // of reliable, in-order, encrypted data. For example, this can build on top of | 
| 20 // a WebRTC IceTransport for sending and receiving data over QUIC. | 21 // a WebRTC IceTransport for sending and receiving data over QUIC. | 
| 21 class QUIC_EXPORT_PRIVATE QuartcSessionInterface { | 22 class QUIC_EXPORT_PRIVATE QuartcSessionInterface { | 
| 22  public: | 23  public: | 
| 23   virtual ~QuartcSessionInterface() {} | 24   virtual ~QuartcSessionInterface() {} | 
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 101     // TODO(zhihuang): Add proof verification. | 102     // TODO(zhihuang): Add proof verification. | 
| 102   }; | 103   }; | 
| 103 | 104 | 
| 104   // The |delegate| is not owned by QuartcSession. | 105   // The |delegate| is not owned by QuartcSession. | 
| 105   virtual void SetDelegate(Delegate* delegate) = 0; | 106   virtual void SetDelegate(Delegate* delegate) = 0; | 
| 106 }; | 107 }; | 
| 107 | 108 | 
| 108 }  // namespace net | 109 }  // namespace net | 
| 109 | 110 | 
| 110 #endif  // NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ | 111 #endif  // NET_QUIC_QUARTC_QUARTC_SESSION_INTERFACE_H_ | 
| OLD | NEW | 
|---|