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

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

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « content/renderer/p2p/host_address_request.h ('k') | content/renderer/p2p/ipc_socket_factory.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_IPC_SOCKET_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_P2P_IPC_SOCKET_FACTORY_H_
6 #define CONTENT_RENDERER_P2P_IPC_SOCKET_FACTORY_H_ 6 #define CONTENT_RENDERER_P2P_IPC_SOCKET_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
10 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
11 #include "third_party/webrtc/p2p/base/packetsocketfactory.h" 13 #include "third_party/webrtc/p2p/base/packetsocketfactory.h"
12 14
13 namespace content { 15 namespace content {
14 16
15 class P2PSocketDispatcher; 17 class P2PSocketDispatcher;
16 18
17 // IpcPacketSocketFactory implements rtc::PacketSocketFactory 19 // IpcPacketSocketFactory implements rtc::PacketSocketFactory
18 // interface for libjingle using IPC-based P2P sockets. The class must 20 // interface for libjingle using IPC-based P2P sockets. The class must
19 // be used on a thread that is a libjingle thread (implements 21 // be used on a thread that is a libjingle thread (implements
20 // rtc::Thread) and also has associated base::MessageLoop. Each 22 // rtc::Thread) and also has associated base::MessageLoop. Each
21 // socket created by the factory must be used on the thread it was 23 // socket created by the factory must be used on the thread it was
22 // created on. 24 // created on.
23 class IpcPacketSocketFactory : public rtc::PacketSocketFactory { 25 class IpcPacketSocketFactory : public rtc::PacketSocketFactory {
24 public: 26 public:
25 CONTENT_EXPORT explicit IpcPacketSocketFactory( 27 CONTENT_EXPORT explicit IpcPacketSocketFactory(
26 P2PSocketDispatcher* socket_dispatcher); 28 P2PSocketDispatcher* socket_dispatcher);
27 ~IpcPacketSocketFactory() override; 29 ~IpcPacketSocketFactory() override;
28 30
29 rtc::AsyncPacketSocket* CreateUdpSocket( 31 rtc::AsyncPacketSocket* CreateUdpSocket(
30 const rtc::SocketAddress& local_address, 32 const rtc::SocketAddress& local_address,
31 uint16 min_port, 33 uint16_t min_port,
32 uint16 max_port) override; 34 uint16_t max_port) override;
33 rtc::AsyncPacketSocket* CreateServerTcpSocket( 35 rtc::AsyncPacketSocket* CreateServerTcpSocket(
34 const rtc::SocketAddress& local_address, 36 const rtc::SocketAddress& local_address,
35 uint16 min_port, 37 uint16_t min_port,
36 uint16 max_port, 38 uint16_t max_port,
37 int opts) override; 39 int opts) override;
38 rtc::AsyncPacketSocket* CreateClientTcpSocket( 40 rtc::AsyncPacketSocket* CreateClientTcpSocket(
39 const rtc::SocketAddress& local_address, 41 const rtc::SocketAddress& local_address,
40 const rtc::SocketAddress& remote_address, 42 const rtc::SocketAddress& remote_address,
41 const rtc::ProxyInfo& proxy_info, 43 const rtc::ProxyInfo& proxy_info,
42 const std::string& user_agent, 44 const std::string& user_agent,
43 int opts) override; 45 int opts) override;
44 rtc::AsyncResolverInterface* CreateAsyncResolver() override; 46 rtc::AsyncResolverInterface* CreateAsyncResolver() override;
45 47
46 private: 48 private:
47 P2PSocketDispatcher* socket_dispatcher_; 49 P2PSocketDispatcher* socket_dispatcher_;
48 50
49 DISALLOW_COPY_AND_ASSIGN(IpcPacketSocketFactory); 51 DISALLOW_COPY_AND_ASSIGN(IpcPacketSocketFactory);
50 }; 52 };
51 53
52 } // namespace content 54 } // namespace content
53 55
54 #endif // CONTENT_RENDERER_P2P_IPC_SOCKET_FACTORY_H_ 56 #endif // CONTENT_RENDERER_P2P_IPC_SOCKET_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/host_address_request.h ('k') | content/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698