Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: net/curvecp/client_packetizer.h

Issue 9597005: Revert 124890 - Convert uses of int ms to TimeDelta in chrome/browser and net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/curvecp/client_packetizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/curvecp/client_packetizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698