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

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

Issue 1212333011: Retrieved Hostlist information from Directory service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing offline_host check. 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
« no previous file with comments | « remoting/test/chromoting_test_driver.cc ('k') | remoting/test/host_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HOST_INFO_H_
6 #define REMOTING_TEST_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 HostStatus {
17 kHostStatusOnline,
18 kHostStatusOffline
19 };
20
21 struct HostInfo {
22 HostInfo();
23 ~HostInfo();
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 HostStatus status = kHostStatusOffline;
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_HOST_INFO_H_
OLDNEW
« no previous file with comments | « remoting/test/chromoting_test_driver.cc ('k') | remoting/test/host_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698