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

Unified Diff: remoting/protocol/pepper_transport_factory.h

Issue 9325036: Add abstract interfaces for the transport layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 10 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/protocol/pepper_transport_factory.h
diff --git a/remoting/protocol/pepper_transport_factory.h b/remoting/protocol/pepper_transport_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..94e7bbe98c8f16f5b9a946e338f38b159d234314
--- /dev/null
+++ b/remoting/protocol/pepper_transport_factory.h
@@ -0,0 +1,34 @@
+// 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_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_
+#define REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_
+
+#include "remoting/protocol/transport.h"
+
+namespace pp {
+class Instance;
+} // namespace pp
+
+namespace remoting {
+namespace protocol {
+
+class PepperTransportFactory : public TransportFactory {
+ public:
+ PepperTransportFactory(pp::Instance* pp_instance);
+ virtual ~PepperTransportFactory();
+
+ virtual scoped_ptr<StreamTransport> CreateStreamTransport() OVERRIDE;
+ virtual scoped_ptr<DatagramTransport> CreateDatagramTransport() OVERRIDE;
+
+ private:
+ pp::Instance* pp_instance_;
+
+ DISALLOW_COPY_AND_ASSIGN(PepperTransportFactory);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698