From ec641187306d367f79476dd913097f550af701a5 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Fri, 11 Nov 2011 03:28:55 +0000 Subject: Make ConnectionToClient and ClientSession not ref-counted. Also made then NonThreadSafe. BUG=96325 TEST=Chromoting works. Review URL: http://codereview.chromium.org/8495035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109574 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/screen_recorder.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'remoting/host/screen_recorder.cc') diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc index 951ef22..0098a0a 100644 --- a/remoting/host/screen_recorder.cc +++ b/remoting/host/screen_recorder.cc @@ -79,8 +79,7 @@ void ScreenRecorder::Stop(const base::Closure& done_task) { &ScreenRecorder::DoStopOnNetworkThread, this, done_task)); } -void ScreenRecorder::AddConnection( - scoped_refptr connection) { +void ScreenRecorder::AddConnection(ConnectionToClient* connection) { DCHECK(network_loop_->BelongsToCurrentThread()); connections_.push_back(connection); @@ -88,8 +87,7 @@ void ScreenRecorder::AddConnection( FROM_HERE, base::Bind(&ScreenRecorder::DoInvalidateFullScreen, this)); } -void ScreenRecorder::RemoveConnection( - scoped_refptr connection) { +void ScreenRecorder::RemoveConnection(ConnectionToClient* connection) { DCHECK(network_loop_->BelongsToCurrentThread()); ConnectionToClientList::iterator it = -- cgit v1.1