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

Side by Side Diff: remoting/protocol/connection_to_host.h

Issue 7796026: Pass SessionConfig by reference instead of pointer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const std::string& your_jid, 88 const std::string& your_jid,
89 const std::string& host_jid, 89 const std::string& host_jid,
90 const std::string& host_public_key, 90 const std::string& host_public_key,
91 const std::string& access_code, 91 const std::string& access_code,
92 HostEventCallback* event_callback, 92 HostEventCallback* event_callback,
93 ClientStub* client_stub, 93 ClientStub* client_stub,
94 VideoStub* video_stub); 94 VideoStub* video_stub);
95 95
96 virtual void Disconnect(const base::Closure& shutdown_task); 96 virtual void Disconnect(const base::Closure& shutdown_task);
97 97
98 virtual const SessionConfig* config(); 98 virtual const SessionConfig& config();
99 99
100 virtual InputStub* input_stub(); 100 virtual InputStub* input_stub();
101 101
102 virtual HostStub* host_stub(); 102 virtual HostStub* host_stub();
103 103
104 // SignalStrategy::StatusObserver interface. 104 // SignalStrategy::StatusObserver interface.
105 virtual void OnStateChange( 105 virtual void OnStateChange(
106 SignalStrategy::StatusObserver::State state) OVERRIDE; 106 SignalStrategy::StatusObserver::State state) OVERRIDE;
107 virtual void OnJidChange(const std::string& full_jid) OVERRIDE; 107 virtual void OnJidChange(const std::string& full_jid) OVERRIDE;
108 108
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 private: 180 private:
181 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 181 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
182 }; 182 };
183 183
184 } // namespace protocol 184 } // namespace protocol
185 } // namespace remoting 185 } // namespace remoting
186 186
187 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::ConnectionToHost); 187 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::ConnectionToHost);
188 188
189 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 189 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698