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

Unified Diff: remoting/host/chromoting_host.h

Issue 8619011: Use Authenticator interface in Session and SessionManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittests Created 9 years, 1 month 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 | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 0f112e5620b27b7b6b8b71be230d41f9e78aef01..290859ef3afb945470b7d9d6197bc2288e28dd4a 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -14,6 +14,7 @@
#include "remoting/host/capturer.h"
#include "remoting/host/client_session.h"
#include "remoting/host/desktop_environment.h"
+#include "remoting/host/host_key_pair.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/host/ui_strings.h"
#include "remoting/jingle_glue/jingle_thread.h"
@@ -91,6 +92,11 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// started.
void AddStatusObserver(HostStatusObserver* observer);
+ // Sets shared secret for the host. All incoming connections are
+ // rejected if shared secret isn't set. Must be called on the
+ // network thread after the host is started.
+ void SetSharedSecret(const std::string& shared_secret);
+
////////////////////////////////////////////////////////////////////////////
// SignalStrategy::StatusObserver implementation.
virtual void OnStateChange(
@@ -119,9 +125,6 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
void set_it2me(bool is_it2me) {
is_it2me_ = is_it2me;
}
- void set_access_code(const std::string& access_code) {
- access_code_ = access_code;
- }
// Notify all active client sessions that local input has been detected, and
// that remote input should be ignored for a short time.
@@ -183,6 +186,7 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
ChromotingHostContext* context_;
DesktopEnvironment* desktop_environment_;
scoped_refptr<MutableHostConfig> config_;
+ HostKeyPair key_pair_;
bool allow_nat_traversal_;
// Connection objects.
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698