1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_TEST_REMOTE_HOST_INFO_H_
6 #define REMOTING_TEST_REMOTE_HOST_INFO_H_
13 enum RemoteHostStatus
{
14 kRemoteHostStatusReady
,
15 kRemoteHostStatusPending
,
16 kRemoteHostStatusUnknown
19 // Holds the information needed to establish a connection with a remote host.
20 struct RemoteHostInfo
{
24 // Returns true if the remote host is ready to accept connections.
25 bool IsReadyForConnection() const;
27 // Sets the |remote_host_status| based on the caller supplied string.
28 void SetRemoteHostStatusFromString(const std::string
& status_string
);
30 // Data used to establish a connection with a remote host.
31 RemoteHostStatus remote_host_status
;
32 std::string application_id
;
35 std::string authorization_code
;
36 std::string shared_secret
;
40 } // namespace remoting
42 #endif // REMOTING_TEST_REMOTE_HOST_INFO_H_