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

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

Issue 307063003: Revert 273745 "Implements RTP header dumping." due to memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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_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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "content/browser/renderer_host/p2p/socket_host.h" 16 #include "content/browser/renderer_host/p2p/socket_host.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/common/p2p_socket_type.h" 18 #include "content/common/p2p_socket_type.h"
19 #include "net/base/ip_endpoint.h" 19 #include "net/base/ip_endpoint.h"
20 #include "net/udp/udp_server_socket.h" 20 #include "net/udp/udp_server_socket.h"
21 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" 21 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h"
22 22
23 namespace content { 23 namespace content {
24 24
25 class P2PMessageThrottler; 25 class P2PMessageThrottler;
26 26
27 class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost { 27 class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost {
28 public: 28 public:
29 P2PSocketHostUdp(IPC::Sender* message_sender, 29 P2PSocketHostUdp(IPC::Sender* message_sender, int id,
30 int socket_id,
31 P2PMessageThrottler* throttler); 30 P2PMessageThrottler* throttler);
32 virtual ~P2PSocketHostUdp(); 31 virtual ~P2PSocketHostUdp();
33 32
34 // P2PSocketHost overrides. 33 // P2PSocketHost overrides.
35 virtual bool Init(const net::IPEndPoint& local_address, 34 virtual bool Init(const net::IPEndPoint& local_address,
36 const P2PHostAndIPEndPoint& remote_address) OVERRIDE; 35 const P2PHostAndIPEndPoint& remote_address) OVERRIDE;
37 virtual void Send(const net::IPEndPoint& to, 36 virtual void Send(const net::IPEndPoint& to,
38 const std::vector<char>& data, 37 const std::vector<char>& data,
39 const talk_base::PacketOptions& options, 38 const talk_base::PacketOptions& options,
40 uint64 packet_id) OVERRIDE; 39 uint64 packet_id) OVERRIDE;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // response or relay allocation request or response. 81 // response or relay allocation request or response.
83 ConnectedPeerSet connected_peers_; 82 ConnectedPeerSet connected_peers_;
84 P2PMessageThrottler* throttler_; 83 P2PMessageThrottler* throttler_;
85 84
86 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); 85 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp);
87 }; 86 };
88 87
89 } // namespace content 88 } // namespace content
90 89
91 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 90 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698