OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_P2P_QUIC_P2P_STREAM_H_ | 5 #ifndef NET_QUIC_P2P_QUIC_P2P_STREAM_H_ |
6 #define NET_QUIC_P2P_QUIC_P2P_STREAM_H_ | 6 #define NET_QUIC_P2P_QUIC_P2P_STREAM_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
9 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
10 #include "net/quic/reliable_quic_stream.h" | 11 #include "net/quic/reliable_quic_stream.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 // Streams created by QuicP2PSession. | 15 // Streams created by QuicP2PSession. |
15 class NET_EXPORT QuicP2PStream : public ReliableQuicStream { | 16 class NET_EXPORT QuicP2PStream : public ReliableQuicStream { |
16 public: | 17 public: |
17 // Delegate handles protocol specific behavior of a quic stream. | 18 // Delegate handles protocol specific behavior of a quic stream. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 57 |
57 CompletionCallback write_callback_; | 58 CompletionCallback write_callback_; |
58 int last_write_size_ = 0; | 59 int last_write_size_ = 0; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(QuicP2PStream); | 61 DISALLOW_COPY_AND_ASSIGN(QuicP2PStream); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace net | 64 } // namespace net |
64 | 65 |
65 #endif // NET_QUIC_P2P_QUIC_P2P_STREAM_H_ | 66 #endif // NET_QUIC_P2P_QUIC_P2P_STREAM_H_ |
OLD | NEW |