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 | |
joedow
2015/07/06 22:19:12
A good practice with enums is to add a value at th
Sergey Ulanov
2015/07/07 00:01:45
IMO it's better to avoid "null" values, unless the
tonychun
2015/07/08 03:12:13
I have added LOG(ERROR) and NOTREACHED() to print
tonychun
2015/07/08 03:12:13
The reason I didn't do this is because currently t
| |
19 }; | |
20 | |
21 struct ChromotingHostInfo { | |
22 explicit ChromotingHostInfo(const base::DictionaryValue& item); | |
joedow
2015/07/06 22:19:12
item? can you make this more descriptive?
tonychun
2015/07/08 03:12:13
Done.
| |
23 ~ChromotingHostInfo(); | |
24 | |
25 std::string host_id; | |
26 std::string host_jid; | |
27 std::string host_name; | |
28 ChromotingHostStatus status; | |
Sergey Ulanov
2015/07/07 00:01:45
Specify default value here (i.e. add = kChromoting
tonychun
2015/07/08 03:12:13
Done.
| |
29 std::string offline_reason; | |
30 std::string public_key; | |
31 std::vector<std::string> tokenUrlPatterns; | |
joedow
2015/07/06 22:19:12
token_url_patterns
tonychun
2015/07/08 03:12:13
Done.
| |
32 }; | |
33 | |
34 } // namespace test | |
35 } // namespace remoting | |
36 | |
37 #endif // REMOTING_TEST_CHROMOTING_HOST_INFO_H_ | |
OLD | NEW |