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

Side by Side Diff: content/renderer/p2p/p2p_transport_impl.h

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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
« no previous file with comments | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/p2p/p2p_transport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_
6 #define CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ 6 #define CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "net/base/completion_callback.h" 12 #include "net/base/completion_callback.h"
13 #include "third_party/libjingle/source/talk/base/sigslot.h" 13 #include "third_party/libjingle/source/talk/base/sigslot.h"
14 #include "webkit/glue/p2p_transport.h" 14 #include "webkit/glue/p2p_transport.h"
15 15
16 class P2PSocketDispatcher;
17
18 namespace cricket { 16 namespace cricket {
19 class Candidate; 17 class Candidate;
20 class PortAllocator; 18 class PortAllocator;
21 class P2PTransportChannel; 19 class P2PTransportChannel;
22 class TransportChannel; 20 class TransportChannel;
23 class TransportChannelImpl; 21 class TransportChannelImpl;
24 } // namespace cricket 22 } // namespace cricket
25 23
26 namespace jingle_glue { 24 namespace jingle_glue {
27 class TransportChannelSocketAdapter; 25 class TransportChannelSocketAdapter;
28 class PseudoTcpAdapter; 26 class PseudoTcpAdapter;
29 } // namespace jingle_glue 27 } // namespace jingle_glue
30 28
31 namespace talk_base { 29 namespace talk_base {
32 class NetworkManager; 30 class NetworkManager;
33 class PacketSocketFactory; 31 class PacketSocketFactory;
34 } // namespace talk_base 32 } // namespace talk_base
35 33
34 namespace content {
35
36 class P2PSocketDispatcher;
37
36 class P2PTransportImpl : public webkit_glue::P2PTransport, 38 class P2PTransportImpl : public webkit_glue::P2PTransport,
37 public sigslot::has_slots<> { 39 public sigslot::has_slots<> {
38 public: 40 public:
39 // Create P2PTransportImpl using specified NetworkManager and 41 // Create P2PTransportImpl using specified NetworkManager and
40 // PacketSocketFactory. Takes ownership of |network_manager| and 42 // PacketSocketFactory. Takes ownership of |network_manager| and
41 // |socket_factory|. 43 // |socket_factory|.
42 P2PTransportImpl(talk_base::NetworkManager* network_manager, 44 P2PTransportImpl(talk_base::NetworkManager* network_manager,
43 talk_base::PacketSocketFactory* socket_factory); 45 talk_base::PacketSocketFactory* socket_factory);
44 46
45 // Creates P2PTransportImpl using specified 47 // Creates P2PTransportImpl using specified
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 scoped_ptr<cricket::P2PTransportChannel> channel_; 81 scoped_ptr<cricket::P2PTransportChannel> channel_;
80 82
81 scoped_ptr<jingle_glue::TransportChannelSocketAdapter> channel_adapter_; 83 scoped_ptr<jingle_glue::TransportChannelSocketAdapter> channel_adapter_;
82 scoped_ptr<jingle_glue::PseudoTcpAdapter> pseudo_tcp_adapter_; 84 scoped_ptr<jingle_glue::PseudoTcpAdapter> pseudo_tcp_adapter_;
83 85
84 net::CompletionCallbackImpl<P2PTransportImpl> connect_callback_; 86 net::CompletionCallbackImpl<P2PTransportImpl> connect_callback_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(P2PTransportImpl); 88 DISALLOW_COPY_AND_ASSIGN(P2PTransportImpl);
87 }; 89 };
88 90
91 } // namespace content
92
89 #endif // CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_ 93 #endif // CONTENT_RENDERER_P2P_P2P_TRANSPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/ipc_socket_factory.cc ('k') | content/renderer/p2p/p2p_transport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698