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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 8046018: Parse termination reason and propagate the error to the Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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/protocol/jingle_session.h ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index 01ea8069e82f31bf01fe6a4cf3b5d5afe413a051..611f97c7431bf127b376fbdf28c200445a31b378 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -49,6 +49,7 @@ JingleSession::JingleSession(
: jingle_session_manager_(jingle_session_manager),
local_cert_(local_cert),
state_(INITIALIZING),
+ error_(OK),
closing_(false),
cricket_session_(NULL),
config_set_(false),
@@ -132,6 +133,11 @@ void JingleSession::SetStateChangeCallback(StateChangeCallback* callback) {
state_change_callback_.reset(callback);
}
+Session::Error JingleSession::error() {
+ DCHECK(CalledOnValidThread());
+ return error_;
+}
+
void JingleSession::CreateStreamChannel(
const std::string& name, const StreamChannelCallback& callback) {
DCHECK(CalledOnValidThread());
« no previous file with comments | « remoting/protocol/jingle_session.h ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698