summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.h
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 01:16:56 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 01:16:56 +0000
commitce3ebfadcc88c39a5fad11a012c44071cf08dba8 (patch)
tree85f8e002b8d0d7165599ddeb08b4e151f0cbb2c7 /remoting/host/chromoting_host.h
parentf930edd6264e33bc7a57ecc8cad52a80330cfb5e (diff)
downloadchromium_src-ce3ebfadcc88c39a5fad11a012c44071cf08dba8.zip
chromium_src-ce3ebfadcc88c39a5fad11a012c44071cf08dba8.tar.gz
chromium_src-ce3ebfadcc88c39a5fad11a012c44071cf08dba8.tar.bz2
Add an authentication step to stream channel setup in JingleStreamConnector.
Fix JingleStreamConnector and JingleDatagramConnector tear-down semantics in case of failure. BUG=88130,90624 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94247 Review URL: http://codereview.chromium.org/7501007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.h')
-rw-r--r--remoting/host/chromoting_host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 5908432..2938b6c 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -135,6 +135,9 @@ 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.
@@ -226,6 +229,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// are pre-authenticated, and hence the local login challenge can be bypassed.
bool is_it2me_;
+ std::string access_code_;
+
// Stores list of tasks that should be executed when we finish
// shutdown. Used only while |state_| is set to kStopping.
std::vector<Task*> shutdown_tasks_;