OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef REMOTING_TEST_CHROMOTING_HOST_INFO_H_ | |
6 #define REMOTING_TEST_CHROMOTING_HOST_INFO_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "base/values.h" | |
12 | |
13 namespace remoting { | |
14 namespace test { | |
15 | |
16 enum ChromotingHostStatus { | |
17 kChromotingHostStatusOnline, | |
18 kChromotingHostStatusOffline | |
19 }; | |
20 | |
21 struct ChromotingHostInfo { | |
Sergey Ulanov
2015/07/08 19:57:33
I think this can be called HostInfo. it's already
tonychun
2015/07/08 22:38:15
Done.
| |
22 ChromotingHostInfo(); | |
23 ~ChromotingHostInfo(); | |
24 | |
25 bool ParseHostInfo(const base::DictionaryValue& host_info); | |
26 | |
27 std::string host_id; | |
28 std::string host_jid; | |
29 std::string host_name; | |
30 ChromotingHostStatus status = kChromotingHostStatusOffline; | |
joedow
2015/07/08 17:19:07
This would be better if you set this in the C'Tor
Sergey Ulanov
2015/07/08 19:57:34
Style guide says:
Use in-class member initializa
tonychun
2015/07/08 22:38:15
Done.
| |
31 std::string offline_reason; | |
32 std::string public_key; | |
33 std::vector<std::string> token_url_patterns; | |
34 }; | |
35 | |
36 } // namespace test | |
37 } // namespace remoting | |
38 | |
39 #endif // REMOTING_TEST_CHROMOTING_HOST_INFO_H_ | |
OLD | NEW |