| 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_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_SESSION_H_ |
| 6 #define REMOTING_PROTOCOL_SESSION_H_ | 6 #define REMOTING_PROTOCOL_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 12 #include "remoting/protocol/buffered_socket_writer.h" | 12 #include "remoting/protocol/buffered_socket_writer.h" |
| 13 #include "remoting/protocol/session_config.h" | 13 #include "remoting/protocol/session_config.h" |
| 14 | 14 |
| 15 class Task; | |
| 16 | |
| 17 namespace net { | 15 namespace net { |
| 18 class Socket; | 16 class Socket; |
| 19 class StreamSocket; | 17 class StreamSocket; |
| 20 } // namespace net | 18 } // namespace net |
| 21 | 19 |
| 22 namespace remoting { | 20 namespace remoting { |
| 23 namespace protocol { | 21 namespace protocol { |
| 24 | 22 |
| 25 // Generic interface for Chromotocol connection used by both client and host. | 23 // Generic interface for Chromotocol connection used by both client and host. |
| 26 // Provides access to the connection channels, but doesn't depend on the | 24 // Provides access to the connection channels, but doesn't depend on the |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 virtual void Close() = 0; | 128 virtual void Close() = 0; |
| 131 | 129 |
| 132 private: | 130 private: |
| 133 DISALLOW_COPY_AND_ASSIGN(Session); | 131 DISALLOW_COPY_AND_ASSIGN(Session); |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace protocol | 134 } // namespace protocol |
| 137 } // namespace remoting | 135 } // namespace remoting |
| 138 | 136 |
| 139 #endif // REMOTING_PROTOCOL_SESSION_H_ | 137 #endif // REMOTING_PROTOCOL_SESSION_H_ |
| OLD | NEW |