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

Side by Side Diff: remoting/host/gnubby_connection_factory.h

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually add braces Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_GNUBBY_CONNECTION_FACTORY_H_
6 #define REMOTING_HOST_GNUBBY_CONNECTION_FACTORY_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/single_thread_task_runner.h"
10
11 namespace base {
12 class SingleThreadTaskRunner;
13 } // namespace base
14
15 namespace net {
16 class StreamSocket;
17 } // namespace net
18
19 namespace remoting {
20
21 class GnubbyAuthHandler;
22 class GnubbyConnection;
23
24 // An interface used to instantiate GnubbyConnection objects.
25
26 class GnubbyConnectionFactory {
27 public:
28 GnubbyConnectionFactory();
29 virtual ~GnubbyConnectionFactory();
30
31 // Create a new GnubbyConnection object.
32 virtual GnubbyConnection* Create(
33 GnubbyAuthHandler* auth_handler,
34 int connection_id,
35 net::StreamSocket* socket) = 0;
36
37 // Get the default GnubbyConnection factory.
38 static GnubbyConnectionFactory* GetDefaultFactory();
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(GnubbyConnectionFactory);
42 };
43
44 } // namespace remoting
45
46 #endif // REMOTING_HOST_GNUBBY_CONNECTION_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698