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

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, 11 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..250da8148e4cab2f009a653ea926db25350d9a78
--- /dev/null
+++ b/remoting/protocol/pepper_transport_factory.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
Wez 2012/02/07 01:17:37 Wrong year. ;)
Sergey Ulanov 2012/02/07 04:41:12 Done.
+// 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_CHANNEL_FACTORY_H_
Wez 2012/02/07 01:17:37 Wrong guard #define
Sergey Ulanov 2012/02/07 04:41:12 Done.
+
+#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