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

Unified Diff: remoting/host/desktop_environment.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/gnubby_auth_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_environment.h
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h
index 1fa9ccd19f7b798c5a30c784dcbba4e204dc739a..c289891293d3953cb1e064c1c4905806175edbb0 100644
--- a/remoting/host/desktop_environment.h
+++ b/remoting/host/desktop_environment.h
@@ -23,8 +23,13 @@ class ScreenCapturer;
namespace remoting {
+namespace protocol {
+class ClientStub;
+} // namespace protocol
+
class AudioCapturer;
class ClientSessionControl;
+class GnubbyAuthHandler;
class InputInjector;
class ScreenControls;
@@ -47,6 +52,11 @@ class DesktopEnvironment {
// Passes the final set of capabilities negotiated between the client and host
// to |this|.
virtual void SetCapabilities(const std::string& capabilities) = 0;
+
+ // Factory method to create a gnubby auth handler suitable for the particular
+ // desktop environment.
+ virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler(
+ protocol::ClientStub* client_stub) = 0;
};
// Used to create |DesktopEnvironment| instances.
@@ -67,6 +77,9 @@ class DesktopEnvironmentFactory {
// Returns |true| if created |DesktopEnvironment| instances support audio
// capture.
virtual bool SupportsAudioCapture() const = 0;
+
+ // Enables or disables gnubby authentication.
+ virtual void SetEnableGnubbyAuth(bool enable) {}
};
} // namespace remoting
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/gnubby_auth_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698