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-27 04:17:57 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 04:17:57 +0000
commit278a4e8244ff8105dd2fdd4f8c593b4bd6a34cee (patch)
tree97e93930cb2764e2038fb2780f1bbed121f30046 /remoting/host/chromoting_host.h
parent2b7391e9c66a34a2757a6367a97da98697736831 (diff)
downloadchromium_src-278a4e8244ff8105dd2fdd4f8c593b4bd6a34cee.zip
chromium_src-278a4e8244ff8105dd2fdd4f8c593b4bd6a34cee.tar.gz
chromium_src-278a4e8244ff8105dd2fdd4f8c593b4bd6a34cee.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= Review URL: http://codereview.chromium.org/7501007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94247 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 f280914..234700d 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -133,6 +133,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.
@@ -224,6 +227,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_;