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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_tcp.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, 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) 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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 virtual ~P2PSocketHostTcpBase(); 35 virtual ~P2PSocketHostTcpBase();
36 36
37 bool InitAccepted(const net::IPEndPoint& remote_address, 37 bool InitAccepted(const net::IPEndPoint& remote_address,
38 net::StreamSocket* socket); 38 net::StreamSocket* socket);
39 39
40 // P2PSocketHost overrides. 40 // P2PSocketHost overrides.
41 virtual bool Init(const net::IPEndPoint& local_address, 41 virtual bool Init(const net::IPEndPoint& local_address,
42 const net::IPEndPoint& remote_address) OVERRIDE; 42 const net::IPEndPoint& remote_address) OVERRIDE;
43 virtual void Send(const net::IPEndPoint& to, 43 virtual void Send(const net::IPEndPoint& to,
44 const std::vector<char>& data, 44 const std::vector<char>& data,
45 net::DiffServCodePoint dscp,
45 uint64 packet_id) OVERRIDE; 46 uint64 packet_id) OVERRIDE;
46 virtual P2PSocketHost* AcceptIncomingTcpConnection( 47 virtual P2PSocketHost* AcceptIncomingTcpConnection(
47 const net::IPEndPoint& remote_address, int id) OVERRIDE; 48 const net::IPEndPoint& remote_address, int id) OVERRIDE;
48 49
49 protected: 50 protected:
50 // Derived classes will provide the implementation. 51 // Derived classes will provide the implementation.
51 virtual int ProcessInput(char* input, int input_len) = 0; 52 virtual int ProcessInput(char* input, int input_len) = 0;
52 virtual void DoSend(const net::IPEndPoint& to, 53 virtual void DoSend(const net::IPEndPoint& to,
53 const std::vector<char>& data) = 0; 54 const std::vector<char>& data) = 0;
54 55
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 private: 132 private:
132 int GetExpectedPacketSize(const char* data, int len, int* pad_bytes); 133 int GetExpectedPacketSize(const char* data, int len, int* pad_bytes);
133 134
134 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostStunTcp); 135 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostStunTcp);
135 }; 136 };
136 137
137 138
138 } // namespace content 139 } // namespace content
139 140
140 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ 141 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host.h ('k') | content/browser/renderer_host/p2p/socket_host_tcp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698