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

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: Move connection status UI out of JniInterface 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 and
56 // android/java/res/values/strings.xml. The Android app also includes a 56 // android/java/res/values/strings.xml. The Android app also includes
57 // constant in android/java/src/org/chromium/chromoting/jni/JniInterface.java 57 // constants in android/java/src/org/chromium/chromoting/jni/JniInterface.java
58 // that tracks the numeric value of the CONNECTED state. Be sure to update 58 // that track the numeric values of some of these states. Be sure to update
59 // these locations to match this one 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 { 60 enum State {
61 INITIALIZING, 61 INITIALIZING,
62 CONNECTING, 62 CONNECTING,
63 AUTHENTICATED, 63 AUTHENTICATED,
64 CONNECTED, 64 CONNECTED,
65 FAILED, 65 FAILED,
66 CLOSED, 66 CLOSED,
67 }; 67 };
68 68
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 std::set<std::string> not_ready_channels_; 171 std::set<std::string> not_ready_channels_;
172 172
173 private: 173 private:
174 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); 174 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost);
175 }; 175 };
176 176
177 } // namespace protocol 177 } // namespace protocol
178 } // namespace remoting 178 } // namespace remoting
179 179
180 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ 180 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698