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

Unified Diff: remoting/host/screen_recorder.cc

Issue 8495035: Make ConnectionToClient and ClientSession not ref-counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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/host/screen_recorder.h ('k') | remoting/host/screen_recorder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_recorder.cc
diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc
index 951ef2243bf9718e11f6bf910a912bb42ac1f376..0098a0a043e0a4a01ac6a10997e701b87be64a71 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 =
« no previous file with comments | « remoting/host/screen_recorder.h ('k') | remoting/host/screen_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698