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

Unified Diff: remoting/protocol/pepper_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/message_reader_unittest.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/pepper_session.h
diff --git a/remoting/protocol/pepper_session.h b/remoting/protocol/pepper_session.h
index ab0a26d94458eb5282e7568344491eca50b3bfb2..271d6c157ac15cb138e62a89c9f028daf24c5931 100644
--- a/remoting/protocol/pepper_session.h
+++ b/remoting/protocol/pepper_session.h
@@ -46,7 +46,8 @@ class PepperSession : public Session {
virtual ~PepperSession();
// Session interface.
- virtual void SetStateChangeCallback(StateChangeCallback* callback) OVERRIDE;
+ virtual void SetStateChangeCallback(
+ const StateChangeCallback& callback) OVERRIDE;
virtual Error error() OVERRIDE;
virtual void CreateStreamChannel(
const std::string& name,
@@ -81,7 +82,7 @@ class PepperSession : public Session {
const std::string& peer_public_key,
const std::string& client_token,
CandidateSessionConfig* config,
- Session::StateChangeCallback* state_change_callback);
+ const StateChangeCallback& state_change_callback);
// Handler for session-initiate response.
void OnSessionInitiateResponse(const buzz::XmlElement* response);
@@ -124,7 +125,7 @@ class PepperSession : public Session {
std::string peer_jid_;
std::string peer_public_key_;
scoped_ptr<CandidateSessionConfig> candidate_config_;
- scoped_ptr<StateChangeCallback> state_change_callback_;
+ StateChangeCallback state_change_callback_;
std::string session_id_;
State state_;
« no previous file with comments | « remoting/protocol/message_reader_unittest.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698