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

Unified Diff: remoting/host/client_session.h

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months 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/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 6103c0842e3b20b6f0eae6c8bc8d03fab18bde36..e3a4de18a643a1d4b5a1396b37d13777c9f7143d 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -57,10 +57,8 @@ class ClientSession : public protocol::HostEventStub,
const net::IPEndPoint& local_end_point) = 0;
};
- // Takes ownership of |connection|. Does not take ownership of
- // |event_handler|, |host_event_stub|, or |capturer|.
ClientSession(EventHandler* event_handler,
- protocol::ConnectionToClient* connection,
+ scoped_ptr<protocol::ConnectionToClient> connection,
protocol::HostEventStub* host_event_stub,
Capturer* capturer);
virtual ~ClientSession();
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698