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

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

Issue 1032553008: [Chromoting] Update client connection enums in JS to match C++. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for AUTHENTICATED in webapp Created 5 years, 9 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
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 16 matching lines...) Expand all
27 class HostStub; 27 class HostStub;
28 class InputStub; 28 class InputStub;
29 class SessionConfig; 29 class SessionConfig;
30 class TransportFactory; 30 class TransportFactory;
31 struct TransportRoute; 31 struct TransportRoute;
32 class VideoStub; 32 class VideoStub;
33 33
34 class ConnectionToHost { 34 class ConnectionToHost {
35 public: 35 public:
36 // The UI implementations maintain corresponding definitions of this 36 // The UI implementations maintain corresponding definitions of this
37 // enumeration in webapp/client_session.js and 37 // enumeration in client_session.js and
38 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to 38 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to
39 // update these locations if you make any changes to the ordering. 39 // update these locations if you make any changes to the ordering.
40 enum State { 40 enum State {
41 INITIALIZING, 41 INITIALIZING,
42 CONNECTING, 42 CONNECTING,
43 AUTHENTICATED, 43 AUTHENTICATED,
44 CONNECTED, 44 CONNECTED,
45 FAILED, 45 FAILED,
46 CLOSED, 46 CLOSED,
47 }; 47 };
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual InputStub* input_stub() = 0; 103 virtual InputStub* input_stub() = 0;
104 104
105 // Return the current state of ConnectionToHost. 105 // Return the current state of ConnectionToHost.
106 virtual State state() const = 0; 106 virtual State state() const = 0;
107 }; 107 };
108 108
109 } // namespace protocol 109 } // namespace protocol
110 } // namespace remoting 110 } // namespace remoting
111 111
112 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 112 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698