Index: remoting/client/plugin/pepper_packet_socket_factory.h |
diff --git a/remoting/client/plugin/pepper_packet_socket_factory.h b/remoting/client/plugin/pepper_packet_socket_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..50da2f7af444f004b519acd2203a8838184b0ba2 |
--- /dev/null |
+++ b/remoting/client/plugin/pepper_packet_socket_factory.h |
@@ -0,0 +1,41 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ |
+#define REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ |
+ |
+#include "ppapi/cpp/instance_handle.h" |
+#include "third_party/libjingle/source/talk/base/packetsocketfactory.h" |
+ |
+namespace remoting { |
+ |
+class PepperPacketSocketFactory : public talk_base::PacketSocketFactory { |
Wez
2012/04/25 01:05:33
There should be a short comment explaining what th
|
+ public: |
+ explicit PepperPacketSocketFactory(const pp::InstanceHandle& instance); |
+ virtual ~PepperPacketSocketFactory(); |
+ |
+ virtual talk_base::AsyncPacketSocket* CreateUdpSocket( |
+ const talk_base::SocketAddress& local_address, |
+ int min_port, int max_port) OVERRIDE; |
+ virtual talk_base::AsyncPacketSocket* CreateServerTcpSocket( |
+ const talk_base::SocketAddress& local_address, |
+ int min_port, |
+ int max_port, |
+ bool ssl) OVERRIDE; |
+ virtual talk_base::AsyncPacketSocket* CreateClientTcpSocket( |
+ const talk_base::SocketAddress& local_address, |
+ const talk_base::SocketAddress& remote_address, |
+ const talk_base::ProxyInfo& proxy_info, |
+ const std::string& user_agent, |
+ bool ssl) OVERRIDE; |
+ |
+ private: |
+ const pp::InstanceHandle pp_instance_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PepperPacketSocketFactory); |
+}; |
+ |
+} // namespace remoting |
+ |
+#endif // REMOTING_CLIENT_PLUGIN_PEPPER_PACKET_SOCKET_FACTORY_H_ |