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

Side by Side Diff: remoting/client/plugin/pepper_packet_socket_factory.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_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"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "ppapi/cpp/instance_handle.h" 12 #include "ppapi/cpp/instance_handle.h"
12 #include "third_party/webrtc/p2p/base/packetsocketfactory.h" 13 #include "third_party/webrtc/p2p/base/packetsocketfactory.h"
13 14
14 namespace remoting { 15 namespace remoting {
15 16
16 class PepperPacketSocketFactory : public rtc::PacketSocketFactory { 17 class PepperPacketSocketFactory : public rtc::PacketSocketFactory {
17 public: 18 public:
18 explicit PepperPacketSocketFactory(const pp::InstanceHandle& instance); 19 explicit PepperPacketSocketFactory(const pp::InstanceHandle& instance);
19 ~PepperPacketSocketFactory() override; 20 ~PepperPacketSocketFactory() override;
20 21
21 rtc::AsyncPacketSocket* CreateUdpSocket( 22 rtc::AsyncPacketSocket* CreateUdpSocket(
22 const rtc::SocketAddress& local_address, 23 const rtc::SocketAddress& local_address,
23 uint16 min_port, 24 uint16_t min_port,
24 uint16 max_port) override; 25 uint16_t max_port) override;
25 rtc::AsyncPacketSocket* CreateServerTcpSocket( 26 rtc::AsyncPacketSocket* CreateServerTcpSocket(
26 const rtc::SocketAddress& local_address, 27 const rtc::SocketAddress& local_address,
27 uint16 min_port, 28 uint16_t min_port,
28 uint16 max_port, 29 uint16_t max_port,
29 int opts) override; 30 int opts) override;
30 rtc::AsyncPacketSocket* CreateClientTcpSocket( 31 rtc::AsyncPacketSocket* CreateClientTcpSocket(
31 const rtc::SocketAddress& local_address, 32 const rtc::SocketAddress& local_address,
32 const rtc::SocketAddress& remote_address, 33 const rtc::SocketAddress& remote_address,
33 const rtc::ProxyInfo& proxy_info, 34 const rtc::ProxyInfo& proxy_info,
34 const std::string& user_agent, 35 const std::string& user_agent,
35 int opts) override; 36 int opts) override;
36 rtc::AsyncResolverInterface* CreateAsyncResolver() override; 37 rtc::AsyncResolverInterface* CreateAsyncResolver() override;
37 38
38 private: 39 private:
39 const pp::InstanceHandle pp_instance_; 40 const pp::InstanceHandle pp_instance_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(PepperPacketSocketFactory); 42 DISALLOW_COPY_AND_ASSIGN(PepperPacketSocketFactory);
42 }; 43 };
43 44
44 } // namespace remoting 45 } // namespace remoting
45 46
46 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ 47 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_network_manager.cc ('k') | remoting/client/plugin/pepper_packet_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698