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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host.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
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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_
7 7
8 #include "content/common/p2p_sockets.h" 8 #include "content/common/p2p_sockets.h"
9 9
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "net/base/ip_endpoint.h" 11 #include "net/base/ip_endpoint.h"
12 12
13 namespace content {
14
13 // Base class for P2P sockets. 15 // Base class for P2P sockets.
14 class P2PSocketHost { 16 class P2PSocketHost {
15 public: 17 public:
16 // Creates P2PSocketHost of the specific type. 18 // Creates P2PSocketHost of the specific type.
17 static P2PSocketHost* Create(IPC::Message::Sender* message_sender, 19 static P2PSocketHost* Create(IPC::Message::Sender* message_sender,
18 int routing_id, int id, P2PSocketType type); 20 int routing_id, int id, P2PSocketType type);
19 21
20 virtual ~P2PSocketHost(); 22 virtual ~P2PSocketHost();
21 23
22 // Initalizes the socket. Returns false when initiazations fails. 24 // Initalizes the socket. Returns false when initiazations fails.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static bool IsRequestOrResponse(StunMessageType type); 67 static bool IsRequestOrResponse(StunMessageType type);
66 68
67 IPC::Message::Sender* message_sender_; 69 IPC::Message::Sender* message_sender_;
68 int routing_id_; 70 int routing_id_;
69 int id_; 71 int id_;
70 State state_; 72 State state_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(P2PSocketHost); 74 DISALLOW_COPY_AND_ASSIGN(P2PSocketHost);
73 }; 75 };
74 76
77 } // namespace content
78
75 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ 79 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698