OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CLIENT_PACKETIZER_H_ | 5 #ifndef NET_CURVECP_CLIENT_PACKETIZER_H_ |
6 #define NET_CURVECP_CLIENT_PACKETIZER_H_ | 6 #define NET_CURVECP_CLIENT_PACKETIZER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 int DoWaitingCookie(); | 59 int DoWaitingCookie(); |
60 int DoWaitingCookieComplete(int result); | 60 int DoWaitingCookieComplete(int result); |
61 int DoConnected(int result); | 61 int DoConnected(int result); |
62 | 62 |
63 void DoCallback(int result); | 63 void DoCallback(int result); |
64 | 64 |
65 // Connect to the next address in our list. | 65 // Connect to the next address in our list. |
66 int ConnectNextAddress(); | 66 int ConnectNextAddress(); |
67 | 67 |
68 // We set a timeout for responses to the Hello message. | 68 // We set a timeout for responses to the Hello message. |
69 void StartHelloTimer(base::TimeDelta delay); | 69 void StartHelloTimer(int milliseconds); |
70 void RevokeHelloTimer(); | 70 void RevokeHelloTimer(); |
71 void OnHelloTimeout(); // Called when the Hello Timer fires. | 71 void OnHelloTimeout(); // Called when the Hello Timer fires. |
72 | 72 |
73 // Process the result of a Read operation. | 73 // Process the result of a Read operation. |
74 void ProcessRead(int bytes_read); | 74 void ProcessRead(int bytes_read); |
75 | 75 |
76 // Read packets until an error occurs. | 76 // Read packets until an error occurs. |
77 int ReadPackets(); | 77 int ReadPackets(); |
78 | 78 |
79 // Callback when an internal IO is completed. | 79 // Callback when an internal IO is completed. |
(...skipping 14 matching lines...) Expand all Loading... |
94 | 94 |
95 CompletionCallback io_callback_; | 95 CompletionCallback io_callback_; |
96 base::WeakPtrFactory<ClientPacketizer> weak_factory_; | 96 base::WeakPtrFactory<ClientPacketizer> weak_factory_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(ClientPacketizer); | 98 DISALLOW_COPY_AND_ASSIGN(ClientPacketizer); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace net | 101 } // namespace net |
102 | 102 |
103 #endif // NET_CURVECP_CLIENT_PACKETIZER_H_ | 103 #endif // NET_CURVECP_CLIENT_PACKETIZER_H_ |
OLD | NEW |