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

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

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stub out DSCP for windows for now Created 7 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "content/browser/renderer_host/p2p/socket_host_throttler.h" 10 #include "content/browser/renderer_host/p2p/socket_host_throttler.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void OnCreateSocket(P2PSocketType type, 62 void OnCreateSocket(P2PSocketType type,
63 int socket_id, 63 int socket_id,
64 const net::IPEndPoint& local_address, 64 const net::IPEndPoint& local_address,
65 const net::IPEndPoint& remote_address); 65 const net::IPEndPoint& remote_address);
66 void OnAcceptIncomingTcpConnection(int listen_socket_id, 66 void OnAcceptIncomingTcpConnection(int listen_socket_id,
67 const net::IPEndPoint& remote_address, 67 const net::IPEndPoint& remote_address,
68 int connected_socket_id); 68 int connected_socket_id);
69 void OnSend(int socket_id, 69 void OnSend(int socket_id,
70 const net::IPEndPoint& socket_address, 70 const net::IPEndPoint& socket_address,
71 const std::vector<char>& data); 71 const std::vector<char>& data,
72 net::DiffServCodePoint dscp);
72 void OnDestroySocket(int socket_id); 73 void OnDestroySocket(int socket_id);
73 74
74 void DoGetNetworkList(); 75 void DoGetNetworkList();
75 void SendNetworkList(const net::NetworkInterfaceList& list); 76 void SendNetworkList(const net::NetworkInterfaceList& list);
76 77
77 void OnAddressResolved(DnsRequest* request, 78 void OnAddressResolved(DnsRequest* request,
78 const net::IPAddressNumber& result); 79 const net::IPAddressNumber& result);
79 80
80 content::ResourceContext* resource_context_; 81 content::ResourceContext* resource_context_;
81 scoped_refptr<net::URLRequestContextGetter> url_context_; 82 scoped_refptr<net::URLRequestContextGetter> url_context_;
82 83
83 SocketsMap sockets_; 84 SocketsMap sockets_;
84 85
85 bool monitoring_networks_; 86 bool monitoring_networks_;
86 87
87 std::set<DnsRequest*> dns_requests_; 88 std::set<DnsRequest*> dns_requests_;
88 P2PMessageThrottler throttler_; 89 P2PMessageThrottler throttler_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 91 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
91 }; 92 };
92 93
93 } // namespace content 94 } // namespace content
94 95
95 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 96 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698