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

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

Issue 105943010: Android Chromoting - Close the Desktop view on disconnection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Java enum for state/error codes Created 6 years, 11 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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 54 // The UI implementations maintain corresponding definitions of this
55 // enumeration in webapp/client_session.js and 55 // enumeration in webapp/client_session.js,
56 // android/java/res/values/strings.xml. The Android app also includes a 56 // android/java/res/values/strings.xml and
57 // constant in android/java/src/org/chromium/chromoting/jni/JniInterface.java 57 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to
58 // that tracks the numeric value of the CONNECTED state. Be sure to update 58 // update these locations if you make any changes to the ordering.
59 // these locations to match this one if you make any changes to the ordering.
60 enum State { 59 enum State {
61 INITIALIZING, 60 INITIALIZING,
62 CONNECTING, 61 CONNECTING,
63 AUTHENTICATED, 62 AUTHENTICATED,
64 CONNECTED, 63 CONNECTED,
65 FAILED, 64 FAILED,
66 CLOSED, 65 CLOSED,
67 }; 66 };
68 67
69 class HostEventCallback { 68 class HostEventCallback {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 std::set<std::string> not_ready_channels_; 170 std::set<std::string> not_ready_channels_;
172 171
173 private: 172 private:
174 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 173 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
175 }; 174 };
176 175
177 } // namespace protocol 176 } // namespace protocol
178 } // namespace remoting 177 } // namespace remoting
179 178
180 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 179 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698