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

Unified Diff: remoting/protocol/fake_session.h

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 2 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/protocol/connection_to_host.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.h
diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
index 0e098b40e8545383bdd2ddea0c18ca05c2c813e2..de5617675ff3691d457bfef4cd2991a197f8a57a 100644
--- a/remoting/protocol/fake_session.h
+++ b/remoting/protocol/fake_session.h
@@ -124,7 +124,7 @@ class FakeSession : public Session {
FakeSession();
virtual ~FakeSession();
- StateChangeCallback* state_change_callback() { return callback_.get(); }
+ const StateChangeCallback& state_change_callback() { return callback_; }
void set_message_loop(MessageLoop* message_loop) {
message_loop_ = message_loop;
@@ -138,7 +138,7 @@ class FakeSession : public Session {
FakeUdpSocket* GetDatagramChannel(const std::string& name);
// Session interface.
- virtual void SetStateChangeCallback(StateChangeCallback* callback);
+ virtual void SetStateChangeCallback(const StateChangeCallback& callback);
virtual Session::Error error();
@@ -167,7 +167,7 @@ class FakeSession : public Session {
virtual void Close();
public:
- scoped_ptr<StateChangeCallback> callback_;
+ StateChangeCallback callback_;
scoped_ptr<const CandidateSessionConfig> candidate_config_;
SessionConfig config_;
MessageLoop* message_loop_;
« no previous file with comments | « remoting/protocol/connection_to_host.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698