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

Unified Diff: remoting/client/plugin/pepper_packet_socket_factory.h

Issue 10121002: Implement PepperPacketSocketFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698