Index: remoting/host/gnubby_connection_factory.h |
diff --git a/remoting/host/gnubby_connection_factory.h b/remoting/host/gnubby_connection_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..518efbcd64b179b13b84a0fbe4f1426bf4df96cd |
--- /dev/null |
+++ b/remoting/host/gnubby_connection_factory.h |
@@ -0,0 +1,47 @@ |
+// Copyright 2014 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_HOST_GNUBBY_CONNECTION_FACTORY_H_ |
+#define REMOTING_HOST_GNUBBY_CONNECTION_FACTORY_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "base/single_thread_task_runner.h" |
+ |
+namespace base { |
+class SingleThreadTaskRunner; |
+} // namespace base |
+ |
+namespace net { |
+class StreamSocket; |
+} // namespace net |
+ |
+namespace remoting { |
+ |
+class GnubbyAuthHandler; |
+class GnubbyConnection; |
+ |
+// An interface used to instantiate GnubbyConnection objects. |
+ |
+class GnubbyConnectionFactory { |
+ public: |
+ GnubbyConnectionFactory(); |
+ virtual ~GnubbyConnectionFactory(); |
+ |
+ // Create a new GnubbyConnection object. |
+ virtual GnubbyConnection* Create( |
+ scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
+ GnubbyAuthHandler* auth_handler, |
+ int connection_id, |
+ net::StreamSocket* socket) = 0; |
+ |
+ // Get the default GnubbyConnection factory. |
+ static GnubbyConnectionFactory* GetDefaultFactory(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GnubbyConnectionFactory); |
+}; |
+ |
+} // namespace remoting |
+ |
+#endif // REMOTING_HOST_GNUBBY_CONNECTION_FACTORY_H_ |