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

Unified Diff: remoting/protocol/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/rtp_writer.cc ('k') | remoting/protocol/session_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/session.h
diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
index aaecbf90ae1fd943f93d4dbcb904a1d9558974a4..27558d7b8da2d5e5496dcc42fd35efbc9d00df8d 100644
--- a/remoting/protocol/session.h
+++ b/remoting/protocol/session.h
@@ -58,7 +58,7 @@ class Session : public base::NonThreadSafe {
CHANNEL_CONNECTION_ERROR,
};
- typedef Callback1<State>::Type StateChangeCallback;
+ typedef base::Callback<void(State)> StateChangeCallback;
// TODO(sergeyu): Specify connection error code when channel
// connection fails.
@@ -70,7 +70,7 @@ class Session : public base::NonThreadSafe {
// Set callback that is called when state of the connection is changed.
// Must be called on the jingle thread only.
- virtual void SetStateChangeCallback(StateChangeCallback* callback) = 0;
+ virtual void SetStateChangeCallback(const StateChangeCallback& callback) = 0;
// Returns error code for a failed session.
virtual Error error() = 0;
« no previous file with comments | « remoting/protocol/rtp_writer.cc ('k') | remoting/protocol/session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698