summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/session.h')
-rw-r--r--remoting/protocol/session.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/remoting/protocol/session.h b/remoting/protocol/session.h
index 73b85c8..920a681 100644
--- a/remoting/protocol/session.h
+++ b/remoting/protocol/session.h
@@ -87,13 +87,12 @@ class Session : public base::NonThreadSafe {
// Protocol configuration. Can be called only after session has been accepted.
// Returned pointer is valid until connection is closed.
- virtual const SessionConfig* config() = 0;
+ virtual const SessionConfig& config() = 0;
- // Set protocol configuration for an incoming session. Must be called
- // on the host before the connection is accepted, from
- // ChromotocolServer::IncomingConnectionCallback. Ownership of |config| is
- // given to the connection.
- virtual void set_config(const SessionConfig* config) = 0;
+ // Set protocol configuration for an incoming session. Must be
+ // called on the host before the connection is accepted, from
+ // ChromotocolServer::IncomingConnectionCallback.
+ virtual void set_config(const SessionConfig& config) = 0;
// The raw auth tokens from the session-initiate, or session-accept stanzas.
virtual const std::string& initiator_token() = 0;