diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-15 03:45:46 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-15 03:45:46 +0000 |
commit | 1f3dfe86e30f1c8e492b65ea8fe3b6978ac0552c (patch) | |
tree | 158a7e5d499db66c67a4a5241fc922914511b022 /remoting/protocol/jingle_session.h | |
parent | 1943d11ae0a8a306aa0da1920283c559a18b67ed (diff) | |
download | chromium_src-1f3dfe86e30f1c8e492b65ea8fe3b6978ac0552c.zip chromium_src-1f3dfe86e30f1c8e492b65ea8fe3b6978ac0552c.tar.gz chromium_src-1f3dfe86e30f1c8e492b65ea8fe3b6978ac0552c.tar.bz2 |
Send correct termination reason when session is terminated by the host.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8537020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/jingle_session.h')
-rw-r--r-- | remoting/protocol/jingle_session.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/remoting/protocol/jingle_session.h b/remoting/protocol/jingle_session.h index 4bff001..787cc62 100644 --- a/remoting/protocol/jingle_session.h +++ b/remoting/protocol/jingle_session.h @@ -81,8 +81,10 @@ class JingleSession : public protocol::Session, const std::string& local_certificate() const; void Init(cricket::Session* cricket_session); - // Close all the channels and terminate the session. - void CloseInternal(int result, bool failed); + // Close all the channels and terminate the session. |result| + // defines error code that should returned to currently opened + // channels. |error| specified new value for error(). + void CloseInternal(int result, Error error); bool HasSession(cricket::Session* cricket_session); cricket::Session* ReleaseSession(); |