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

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

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 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 <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "content/browser/renderer_host/p2p/socket_host.h" 14 #include "content/browser/renderer_host/p2p/socket_host.h"
15 #include "content/common/p2p_sockets.h" 15 #include "content/common/p2p_sockets.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "net/base/ip_endpoint.h" 17 #include "net/base/ip_endpoint.h"
18 18
19 namespace net { 19 namespace net {
20 class DrainableIOBuffer; 20 class DrainableIOBuffer;
21 class GrowableIOBuffer; 21 class GrowableIOBuffer;
22 class StreamSocket; 22 class StreamSocket;
23 } // namespace net 23 } // namespace net
24 24
25 namespace content { 25 namespace content {
26 26
27 class P2PSocketHostTcp : public P2PSocketHost { 27 class CONTENT_EXPORT P2PSocketHostTcp : public P2PSocketHost {
28 public: 28 public:
29 P2PSocketHostTcp(IPC::Message::Sender* message_sender, 29 P2PSocketHostTcp(IPC::Message::Sender* message_sender,
30 int routing_id, int id); 30 int routing_id, int id);
31 virtual ~P2PSocketHostTcp(); 31 virtual ~P2PSocketHostTcp();
32 32
33 bool InitAccepted(const net::IPEndPoint& remote_address, 33 bool InitAccepted(const net::IPEndPoint& remote_address,
34 net::StreamSocket* socket); 34 net::StreamSocket* socket);
35 35
36 // P2PSocketHost overrides. 36 // P2PSocketHost overrides.
37 virtual bool Init(const net::IPEndPoint& local_address, 37 virtual bool Init(const net::IPEndPoint& local_address,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 net::CompletionCallbackImpl<P2PSocketHostTcp> connect_callback_; 69 net::CompletionCallbackImpl<P2PSocketHostTcp> connect_callback_;
70 net::CompletionCallbackImpl<P2PSocketHostTcp> read_callback_; 70 net::CompletionCallbackImpl<P2PSocketHostTcp> read_callback_;
71 net::CompletionCallbackImpl<P2PSocketHostTcp> write_callback_; 71 net::CompletionCallbackImpl<P2PSocketHostTcp> write_callback_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp); 73 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcp);
74 }; 74 };
75 75
76 } // namespace content 76 } // namespace content
77 77
78 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_ 78 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698