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

Side by Side Diff: chromecast/public/cast_sys_info.h

Issue 1092283003: [Chromecast] CastSysInfo implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments. Created 5 years, 8 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 CHROMECAST_PUBLIC_CAST_SYS_INFO_H_
6 #define CHROMECAST_PUBLIC_CAST_SYS_INFO_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace chromecast {
12
13 // Pure abstract interface for system information which is accessed by other
14 // processes as well as cast_shell browser process. All information is
15 // immutable.
16 class CastSysInfo {
17 public:
18 enum BuildType {
19 BUILD_ENG,
20 BUILD_BETA,
21 BUILD_PRODUCTION,
22 };
23
24 virtual ~CastSysInfo() {}
25
26 virtual void Initialize() = 0;
27 virtual void Finalize() = 0;
28
29 // Returns the system build type.
30 virtual BuildType GetBuildType() = 0;
31 // Returns release channel of system.
32 virtual std::string GetSystemReleaseChannel() = 0;
33 // Returns serial number of the device.
34 virtual std::string GetSerialNumber() = 0;
35 // Returns product code name of the device (eg: anchovy, salami, fugu, ...).
36 virtual std::string GetProductName() = 0;
37 // Returns model name of device (eg: Chromecast, Nexus Player, ...).
38 virtual std::string GetDeviceModel() = 0;
39 // Returns the board's name.
40 virtual std::string GetBoardName() = 0;
41 // Returns the revision of board (eg: 514, ...).
42 virtual std::string GetBoardRevision() = 0;
43 // Returns device manufacturer (eg: Google, Sony, ...).
44 virtual std::string GetManufacturer() = 0;
45 // Returns the system's build number (eg: 100, 20000 ...).
46 // This describes system version which may be different with
gunsch 2015/04/20 22:34:49 different with --> different than
47 // CAST_BUILD_NUMBER.
48 virtual std::string GetSystemBuildNumber() = 0;
49
50 // Returns default country and locale baked from the factory.
51 virtual std::string GetFactoryCountry() = 0;
52 virtual std::string GetFactoryLocale(std::string* second_locale) = 0;
53
54 // Returns the name of the wifi interface used to connect to the internet.
55 virtual std::string GetWifiInterface() = 0;
56 // Returns the name of the software AP interface.
57 virtual std::string GetApInterface() = 0;
58 };
59
60 } // namespace chromecast
61
62 #endif // CHROMECAST_PUBLIC_CAST_SYS_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698