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

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

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 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 | Annotate | Revision Log
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_TCP_SERVER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 P2PSocketHostTcpServer(IPC::Sender* message_sender, int id, 31 P2PSocketHostTcpServer(IPC::Sender* message_sender, int id,
32 P2PSocketType client_type); 32 P2PSocketType client_type);
33 virtual ~P2PSocketHostTcpServer(); 33 virtual ~P2PSocketHostTcpServer();
34 34
35 // P2PSocketHost overrides. 35 // P2PSocketHost overrides.
36 virtual bool Init(const net::IPEndPoint& local_address, 36 virtual bool Init(const net::IPEndPoint& local_address,
37 const net::IPEndPoint& remote_address) OVERRIDE; 37 const net::IPEndPoint& remote_address) OVERRIDE;
38 virtual void Send(const net::IPEndPoint& to, 38 virtual void Send(const net::IPEndPoint& to,
39 const std::vector<char>& data, 39 const std::vector<char>& data,
40 net::DiffServCodePoint dscp,
40 uint64 packet_id) OVERRIDE; 41 uint64 packet_id) OVERRIDE;
41 virtual P2PSocketHost* AcceptIncomingTcpConnection( 42 virtual P2PSocketHost* AcceptIncomingTcpConnection(
42 const net::IPEndPoint& remote_address, int id) OVERRIDE; 43 const net::IPEndPoint& remote_address, int id) OVERRIDE;
43 44
44 private: 45 private:
45 friend class P2PSocketHostTcpServerTest; 46 friend class P2PSocketHostTcpServerTest;
46 47
47 void OnError(); 48 void OnError();
48 49
49 void DoAccept(); 50 void DoAccept();
(...skipping 10 matching lines...) Expand all
60 AcceptedSocketsMap accepted_sockets_; 61 AcceptedSocketsMap accepted_sockets_;
61 62
62 net::CompletionCallback accept_callback_; 63 net::CompletionCallback accept_callback_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpServer); 65 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpServer);
65 }; 66 };
66 67
67 } // namespace content 68 } // namespace content
68 69
69 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_ 70 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_tcp.cc ('k') | content/browser/renderer_host/p2p/socket_host_tcp_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698