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

Issue 7312013: Minor cleanups in JingleSession and JingleSessionManager. (Closed)

Created:
9 years, 5 months ago by Sergey Ulanov
Modified:
9 years, 5 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Minor cleanups in JingleSession and JingleSessionManager. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91751

Patch Set 1 : - #

Total comments: 24

Patch Set 2 : address comments. #

Total comments: 7

Patch Set 3 : - #

Patch Set 4 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -75 lines) Patch
M remoting/host/chromoting_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/jingle_glue/javascript_signal_strategy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/jingle_glue/xmpp_signal_strategy.cc View 1 chunk +1 line, -3 lines 0 comments Download
M remoting/protocol/connection_to_client.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M remoting/protocol/connection_to_host.cc View 1 2 chunks +6 lines, -12 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M remoting/protocol/jingle_session_manager.h View 1 2 3 3 chunks +9 lines, -9 lines 0 comments Download
M remoting/protocol/jingle_session_manager.cc View 1 2 3 5 chunks +18 lines, -17 lines 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/protocol/protocol_test_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/session_manager.h View 1 2 6 chunks +22 lines, -24 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sergey Ulanov
9 years, 5 months ago (2011-07-06 20:39:14 UTC) #1
Wez
http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/connection_to_client.cc File remoting/protocol/connection_to_client.cc (right): http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/connection_to_client.cc#newcode61 remoting/protocol/connection_to_client.cc:61: // If there is a channel then close it ...
9 years, 5 months ago (2011-07-06 21:24:25 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/connection_to_client.cc File remoting/protocol/connection_to_client.cc (right): http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/connection_to_client.cc#newcode61 remoting/protocol/connection_to_client.cc:61: // If there is a channel then close it ...
9 years, 5 months ago (2011-07-06 23:15:01 UTC) #3
Wez
LGTM modulo some nits, and a bunch of changes from another CL having crept in. ...
9 years, 5 months ago (2011-07-06 23:26:55 UTC) #4
Wez
http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/jingle_session.cc File remoting/protocol/jingle_session.cc (right): http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/jingle_session.cc#newcode162 remoting/protocol/jingle_session.cc:162: Close(); On 2011/07/06 23:15:01, sergeyu wrote: > On 2011/07/06 ...
9 years, 5 months ago (2011-07-06 23:39:41 UTC) #5
Sergey Ulanov
http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/jingle_session.cc File remoting/protocol/jingle_session.cc (right): http://codereview.chromium.org/7312013/diff/2001/remoting/protocol/jingle_session.cc#newcode162 remoting/protocol/jingle_session.cc:162: Close(); On 2011/07/06 23:39:41, Wez wrote: > On 2011/07/06 ...
9 years, 5 months ago (2011-07-07 00:50:30 UTC) #6
Wez
9 years, 5 months ago (2011-07-07 01:03:00 UTC) #7
On 2011/07/07 00:50:30, sergeyu wrote:
> On 2011/07/06 23:39:41, Wez wrote:
> > Actually, I think the only way to be sure that you won't be called back by a
> > cricket::Session at some point after Terminate() is to Destroy() it.
> 
> We cannot destroy it because cricket::SessionManager owns it. I added code in
> CloseInternal() that disconnects cricket::Session::SignalState signal, but
it's
> not strictly necessary because destruction of sigslot::has_slots<> would do it
> anyway.

Sorry, the call I have in mind is SessionManager::DestroySession(), which (I
think) tears down the Session immediately.  It's cleaner to Terminate() if we
can, though, so that we notify the peer.  We can support that in the "normal"
case, but still use Destroy in tear-down, by watching for OnSessionDestroy()
notifications after Terminate(), to know if/when the Session is actually
destroyed.

Powered by Google App Engine
This is Rietveld 408576698