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

Unified Diff: remoting/host/screen_recorder.h

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/client_session_unittest.cc ('k') | remoting/host/screen_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/screen_recorder.h
diff --git a/remoting/host/screen_recorder.h b/remoting/host/screen_recorder.h
index 303405e9ccb795491383c6c43249384c22431cfb..95e338a16a2052dac4fb58b8a1acddfe3219ddf2 100644
--- a/remoting/host/screen_recorder.h
+++ b/remoting/host/screen_recorder.h
@@ -94,10 +94,10 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
void Stop(const base::Closure& done_task);
// Add a connection to this recording session.
- void AddConnection(scoped_refptr<protocol::ConnectionToClient> connection);
+ void AddConnection(protocol::ConnectionToClient* connection);
// Remove a connection from receiving screen updates.
- void RemoveConnection(scoped_refptr<protocol::ConnectionToClient> connection);
+ void RemoveConnection(protocol::ConnectionToClient* connection);
// Remove all connections.
void RemoveAllConnections();
@@ -165,8 +165,7 @@ class ScreenRecorder : public base::RefCountedThreadSafe<ScreenRecorder> {
// A list of clients connected to this hosts.
// This member is always accessed on the network thread.
- typedef std::vector<scoped_refptr<protocol::ConnectionToClient> >
- ConnectionToClientList;
+ typedef std::vector<protocol::ConnectionToClient*> ConnectionToClientList;
ConnectionToClientList connections_;
// Flag that indicates recording has been started. This variable should only
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/screen_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698