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

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

Issue 693433003: Add a new finch experiment to control the system buffer size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_host_udp.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) 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ~PendingPacket(); 56 ~PendingPacket();
57 net::IPEndPoint to; 57 net::IPEndPoint to;
58 scoped_refptr<net::IOBuffer> data; 58 scoped_refptr<net::IOBuffer> data;
59 int size; 59 int size;
60 rtc::PacketOptions packet_options; 60 rtc::PacketOptions packet_options;
61 uint64 id; 61 uint64 id;
62 }; 62 };
63 63
64 void OnError(); 64 void OnError();
65 65
66 void SetSendBufferSize();
67
66 void DoRead(); 68 void DoRead();
67 void OnRecv(int result); 69 void OnRecv(int result);
68 void HandleReadResult(int result); 70 void HandleReadResult(int result);
69 71
70 void DoSend(const PendingPacket& packet); 72 void DoSend(const PendingPacket& packet);
71 void OnSend(uint64 packet_id, int result); 73 void OnSend(uint64 packet_id, uint64 tick_received, int result);
72 void HandleSendResult(uint64 packet_id, int result); 74 void HandleSendResult(uint64 packet_id, uint64 tick_received, int result);
73 75
74 scoped_ptr<net::DatagramServerSocket> socket_; 76 scoped_ptr<net::DatagramServerSocket> socket_;
75 scoped_refptr<net::IOBuffer> recv_buffer_; 77 scoped_refptr<net::IOBuffer> recv_buffer_;
76 net::IPEndPoint recv_address_; 78 net::IPEndPoint recv_address_;
77 79
78 std::deque<PendingPacket> send_queue_; 80 std::deque<PendingPacket> send_queue_;
79 bool send_pending_; 81 bool send_pending_;
80 net::DiffServCodePoint last_dscp_; 82 net::DiffServCodePoint last_dscp_;
81 83
82 // Set of peer for which we have received STUN binding request or 84 // Set of peer for which we have received STUN binding request or
83 // response or relay allocation request or response. 85 // response or relay allocation request or response.
84 ConnectedPeerSet connected_peers_; 86 ConnectedPeerSet connected_peers_;
85 P2PMessageThrottler* throttler_; 87 P2PMessageThrottler* throttler_;
86 88
87 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); 89 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp);
88 }; 90 };
89 91
90 } // namespace content 92 } // namespace content
91 93
92 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 94 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_host_udp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698