| OLD | NEW |
| 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_FAKE_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_ |
| 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ | 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 bool is_closed() const { return closed_; } | 145 bool is_closed() const { return closed_; } |
| 146 | 146 |
| 147 FakeSocket* GetStreamChannel(const std::string& name); | 147 FakeSocket* GetStreamChannel(const std::string& name); |
| 148 FakeUdpSocket* GetDatagramChannel(const std::string& name); | 148 FakeUdpSocket* GetDatagramChannel(const std::string& name); |
| 149 | 149 |
| 150 // Session implementation. | 150 // Session implementation. |
| 151 virtual void SetStateChangeCallback( | 151 virtual void SetStateChangeCallback( |
| 152 const StateChangeCallback& callback) OVERRIDE; | 152 const StateChangeCallback& callback) OVERRIDE; |
| 153 | 153 |
| 154 virtual void SetRouteChangeCallback( |
| 155 const RouteChangeCallback& callback) OVERRIDE; |
| 156 |
| 154 virtual Session::Error error() OVERRIDE; | 157 virtual Session::Error error() OVERRIDE; |
| 155 | 158 |
| 156 virtual void CreateStreamChannel( | 159 virtual void CreateStreamChannel( |
| 157 const std::string& name, const StreamChannelCallback& callback) OVERRIDE; | 160 const std::string& name, const StreamChannelCallback& callback) OVERRIDE; |
| 158 virtual void CreateDatagramChannel( | 161 virtual void CreateDatagramChannel( |
| 159 const std::string& name, | 162 const std::string& name, |
| 160 const DatagramChannelCallback& callback) OVERRIDE; | 163 const DatagramChannelCallback& callback) OVERRIDE; |
| 161 virtual void CancelChannelCreation(const std::string& name) OVERRIDE; | 164 virtual void CancelChannelCreation(const std::string& name) OVERRIDE; |
| 162 | 165 |
| 163 virtual const std::string& jid() OVERRIDE; | 166 virtual const std::string& jid() OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 182 Session::Error error_; | 185 Session::Error error_; |
| 183 bool closed_; | 186 bool closed_; |
| 184 | 187 |
| 185 DISALLOW_COPY_AND_ASSIGN(FakeSession); | 188 DISALLOW_COPY_AND_ASSIGN(FakeSession); |
| 186 }; | 189 }; |
| 187 | 190 |
| 188 } // namespace protocol | 191 } // namespace protocol |
| 189 } // namespace remoting | 192 } // namespace remoting |
| 190 | 193 |
| 191 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ | 194 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ |
| OLD | NEW |