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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_udp.h

Issue 1345583004: Wire up transport sequence number and send time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Matching changes in .h file. Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 void OnError(); 64 void OnError();
65 65
66 void SetSendBufferSize(); 66 void SetSendBufferSize();
67 67
68 void DoRead(); 68 void DoRead();
69 void OnRecv(int result); 69 void OnRecv(int result);
70 void HandleReadResult(int result); 70 void HandleReadResult(int result);
71 71
72 void DoSend(const PendingPacket& packet); 72 void DoSend(const PendingPacket& packet);
73 void OnSend(uint64 packet_id, uint64 tick_received, int result); 73 void OnSend(uint64_t packet_id,
74 void HandleSendResult(uint64 packet_id, uint64 tick_received, int result); 74 int32_t transport_sequence_number,
75 base::TimeTicks time_received,
76 int result);
77 void HandleSendResult(uint64_t packet_id,
78 int32_t transport_sequence_number,
79 base::TimeTicks time_received,
80 int result);
75 81
76 scoped_ptr<net::DatagramServerSocket> socket_; 82 scoped_ptr<net::DatagramServerSocket> socket_;
77 scoped_refptr<net::IOBuffer> recv_buffer_; 83 scoped_refptr<net::IOBuffer> recv_buffer_;
78 net::IPEndPoint recv_address_; 84 net::IPEndPoint recv_address_;
79 85
80 std::deque<PendingPacket> send_queue_; 86 std::deque<PendingPacket> send_queue_;
81 bool send_pending_; 87 bool send_pending_;
82 net::DiffServCodePoint last_dscp_; 88 net::DiffServCodePoint last_dscp_;
83 89
84 // Set of peer for which we have received STUN binding request or 90 // Set of peer for which we have received STUN binding request or
85 // response or relay allocation request or response. 91 // response or relay allocation request or response.
86 ConnectedPeerSet connected_peers_; 92 ConnectedPeerSet connected_peers_;
87 P2PMessageThrottler* throttler_; 93 P2PMessageThrottler* throttler_;
88 94
89 // Keep track of the send socket buffer size under experiment. 95 // Keep track of the send socket buffer size under experiment.
90 size_t send_buffer_size_; 96 size_t send_buffer_size_;
91 97
92 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); 98 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp);
93 }; 99 };
94 100
95 } // namespace content 101 } // namespace content
96 102
97 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 103 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698