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

Side by Side Diff: remoting/test/chromoting_host_info.h

Issue 1212333011: Retrieved Hostlist information from Directory service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up fetcher code and added more unit test coverage. Created 5 years, 5 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698