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

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

Issue 138753005: Add gnubby authentication to remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another Windows warning 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
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/gnubby_auth_handler_posix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AUTH_HANDLER_H_
6 #define REMOTING_HOST_GNUBBY_AUTH_HANDLER_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12
13 namespace base {
14 class FilePath;
15 } // namespace base
16
17 namespace remoting {
18
19 namespace protocol {
20 class ClientStub;
21 } // namespace protocol
22
23 // Class responsible for proxying authentication data between a local gnubbyd
24 // and the client.
25 class GnubbyAuthHandler {
26 public:
27 virtual ~GnubbyAuthHandler() {}
28
29 // Creates a platform-specific GnubbyAuthHandler.
30 static scoped_ptr<GnubbyAuthHandler> Create(
31 protocol::ClientStub* client_stub);
32
33 // Specify the name of the socket to listen to gnubby requests on.
34 static void SetGnubbySocketName(const base::FilePath& gnubby_socket_name);
35
36 // A message was received from the client.
37 virtual void DeliverClientMessage(const std::string& message) = 0;
38
39 // Send data to client.
40 virtual void DeliverHostDataMessage(int connection_id,
41 const std::string& data) const = 0;
42 };
43
44 } // namespace remoting
45
46 #endif // REMOTING_HOST_GNUBBY_AUTH_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/gnubby_auth_handler_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698