OLD | NEW |
1 // Copyright (c) 2011 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_CURVECP_PACKETIZER_H_ | 5 #ifndef NET_CURVECP_PACKETIZER_H_ |
6 #define NET_CURVECP_PACKETIZER_H_ | 6 #define NET_CURVECP_PACKETIZER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
12 #include "net/curvecp/connection_key.h" | 11 #include "net/curvecp/connection_key.h" |
13 | 12 |
14 namespace net { | 13 namespace net { |
15 | 14 |
16 class IPEndPoint; | 15 class IPEndPoint; |
17 | 16 |
18 class Packetizer { | 17 class Packetizer { |
19 public: | 18 public: |
20 class Listener { | 19 class Listener { |
(...skipping 21 matching lines...) Expand all Loading... |
42 virtual int GetPeerAddress(IPEndPoint* addresses) const = 0; | 41 virtual int GetPeerAddress(IPEndPoint* addresses) const = 0; |
43 | 42 |
44 // Returns the current maximum message size which can be fit into the next | 43 // Returns the current maximum message size which can be fit into the next |
45 // message payload to be sent on the packetizer. | 44 // message payload to be sent on the packetizer. |
46 virtual int max_message_payload() const = 0; | 45 virtual int max_message_payload() const = 0; |
47 }; | 46 }; |
48 | 47 |
49 } // namespace net | 48 } // namespace net |
50 | 49 |
51 #endif // NET_CURVECP_PACKETIZER_H_ | 50 #endif // NET_CURVECP_PACKETIZER_H_ |
OLD | NEW |