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

Side by Side Diff: trunk/src/content/renderer/p2p/socket_client_impl.h

Issue 177603002: Revert 252408 "Adding talk_base::PacketOptions to P2P IPC Send m..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_
6 #define CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ 6 #define CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 26 matching lines...) Expand all
37 const net::IPEndPoint& local_address, 37 const net::IPEndPoint& local_address,
38 const net::IPEndPoint& remote_address, 38 const net::IPEndPoint& remote_address,
39 P2PSocketClientDelegate* delegate); 39 P2PSocketClientDelegate* delegate);
40 40
41 // Send the |data| to the |address|. 41 // Send the |data| to the |address|.
42 virtual void Send(const net::IPEndPoint& address, 42 virtual void Send(const net::IPEndPoint& address,
43 const std::vector<char>& data) OVERRIDE; 43 const std::vector<char>& data) OVERRIDE;
44 44
45 // Send the |data| to the |address| using Differentiated Services Code Point 45 // Send the |data| to the |address| using Differentiated Services Code Point
46 // |dscp|. 46 // |dscp|.
47 virtual void SendWithOptions( 47 virtual void SendWithDscp(const net::IPEndPoint& address,
48 const net::IPEndPoint& address, 48 const std::vector<char>& data,
49 const std::vector<char>& data, 49 net::DiffServCodePoint dscp) OVERRIDE;
50 const talk_base::PacketOptions& options) OVERRIDE;
51 50
52 // Setting socket options. 51 // Setting socket options.
53 virtual void SetOption(P2PSocketOption option, int value) OVERRIDE; 52 virtual void SetOption(P2PSocketOption option, int value) OVERRIDE;
54 53
55 // Must be called before the socket is destroyed. The delegate may 54 // Must be called before the socket is destroyed. The delegate may
56 // not be called after |closed_task| is executed. 55 // not be called after |closed_task| is executed.
57 virtual void Close() OVERRIDE; 56 virtual void Close() OVERRIDE;
58 57
59 virtual int GetSocketID() const OVERRIDE; 58 virtual int GetSocketID() const OVERRIDE;
60 59
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // These two fields are used to identify packets for tracing. 114 // These two fields are used to identify packets for tracing.
116 uint32 random_socket_id_; 115 uint32 random_socket_id_;
117 uint32 next_packet_id_; 116 uint32 next_packet_id_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(P2PSocketClientImpl); 118 DISALLOW_COPY_AND_ASSIGN(P2PSocketClientImpl);
120 }; 119 };
121 120
122 } // namespace content 121 } // namespace content
123 122
124 #endif // CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ 123 #endif // CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/p2p/ipc_socket_factory.cc ('k') | trunk/src/content/renderer/p2p/socket_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698