summaryrefslogtreecommitdiffstats
path: root/remoting/host/screen_recorder.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 03:28:55 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-11 03:28:55 +0000
commitec641187306d367f79476dd913097f550af701a5 (patch)
tree5caf7f893b4c0b014ef6372be4759a2a5433d497 /remoting/host/screen_recorder.cc
parentb36fb9f6c87672ddae5ea017f6214d1e4253f346 (diff)
downloadchromium_src-ec641187306d367f79476dd913097f550af701a5.zip
chromium_src-ec641187306d367f79476dd913097f550af701a5.tar.gz
chromium_src-ec641187306d367f79476dd913097f550af701a5.tar.bz2
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
Diffstat (limited to 'remoting/host/screen_recorder.cc')
-rw-r--r--remoting/host/screen_recorder.cc6
1 files changed, 2 insertions, 4 deletions
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<ConnectionToClient> 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<ConnectionToClient> connection) {
+void ScreenRecorder::RemoveConnection(ConnectionToClient* connection) {
DCHECK(network_loop_->BelongsToCurrentThread());
ConnectionToClientList::iterator it =