OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ |
| 7 |
| 8 #include "ppapi/cpp/instance_handle.h" |
| 9 #include "third_party/libjingle/source/talk/base/packetsocketfactory.h" |
| 10 |
| 11 namespace remoting { |
| 12 |
| 13 class PepperPacketSocketFactory : public talk_base::PacketSocketFactory { |
| 14 public: |
| 15 explicit PepperPacketSocketFactory(const pp::InstanceHandle& instance); |
| 16 virtual ~PepperPacketSocketFactory(); |
| 17 |
| 18 virtual talk_base::AsyncPacketSocket* CreateUdpSocket( |
| 19 const talk_base::SocketAddress& local_address, |
| 20 int min_port, int max_port) OVERRIDE; |
| 21 virtual talk_base::AsyncPacketSocket* CreateServerTcpSocket( |
| 22 const talk_base::SocketAddress& local_address, |
| 23 int min_port, |
| 24 int max_port, |
| 25 bool ssl) OVERRIDE; |
| 26 virtual talk_base::AsyncPacketSocket* CreateClientTcpSocket( |
| 27 const talk_base::SocketAddress& local_address, |
| 28 const talk_base::SocketAddress& remote_address, |
| 29 const talk_base::ProxyInfo& proxy_info, |
| 30 const std::string& user_agent, |
| 31 bool ssl) OVERRIDE; |
| 32 |
| 33 private: |
| 34 const pp::InstanceHandle pp_instance_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(PepperPacketSocketFactory); |
| 37 }; |
| 38 |
| 39 } // namespace remoting |
| 40 |
| 41 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ |
OLD | NEW |