| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class SessionConfig; | 44 class SessionConfig; |
| 45 class TransportFactory; | 45 class TransportFactory; |
| 46 class VideoReader; | 46 class VideoReader; |
| 47 class VideoStub; | 47 class VideoStub; |
| 48 | 48 |
| 49 class ConnectionToHost : public SignalStrategy::Listener, | 49 class ConnectionToHost : public SignalStrategy::Listener, |
| 50 public SessionManager::Listener, | 50 public SessionManager::Listener, |
| 51 public Session::EventHandler, | 51 public Session::EventHandler, |
| 52 public base::NonThreadSafe { | 52 public base::NonThreadSafe { |
| 53 public: | 53 public: |
| 54 // The UI implementations maintain corresponding definitions of this |
| 55 // enumeration in webapp/client_session.js and |
| 56 // android/java/res/values/strings.xml. The Android app also includes a |
| 57 // constant in android/java/src/org/chromium/chromoting/jni/JniInterface.java |
| 58 // that tracks the numeric value of the CONNECTED state. Be sure to update |
| 59 // these locations to match this one if you make any changes to the ordering. |
| 54 enum State { | 60 enum State { |
| 55 INITIALIZING, | 61 INITIALIZING, |
| 56 CONNECTING, | 62 CONNECTING, |
| 57 AUTHENTICATED, | 63 AUTHENTICATED, |
| 58 CONNECTED, | 64 CONNECTED, |
| 59 FAILED, | 65 FAILED, |
| 60 CLOSED, | 66 CLOSED, |
| 61 }; | 67 }; |
| 62 | 68 |
| 63 class HostEventCallback { | 69 class HostEventCallback { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 std::set<std::string> not_ready_channels_; | 171 std::set<std::string> not_ready_channels_; |
| 166 | 172 |
| 167 private: | 173 private: |
| 168 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); | 174 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); |
| 169 }; | 175 }; |
| 170 | 176 |
| 171 } // namespace protocol | 177 } // namespace protocol |
| 172 } // namespace remoting | 178 } // namespace remoting |
| 173 | 179 |
| 174 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 180 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| OLD | NEW |