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

Side by Side Diff: chromeos/network/device_state.h

Issue 1059033002: Implement networkingPrivate.getDeviceStates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_NETWORK_DEVICE_STATE_H_ 5 #ifndef CHROMEOS_NETWORK_DEVICE_STATE_H_
6 #define CHROMEOS_NETWORK_DEVICE_STATE_H_ 6 #define CHROMEOS_NETWORK_DEVICE_STATE_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chromeos/network/managed_state.h" 9 #include "chromeos/network/managed_state.h"
10 #include "chromeos/network/network_util.h" 10 #include "chromeos/network/network_util.h"
(...skipping 13 matching lines...) Expand all
24 bool PropertyChanged(const std::string& key, 24 bool PropertyChanged(const std::string& key,
25 const base::Value& value) override; 25 const base::Value& value) override;
26 bool InitialPropertiesReceived( 26 bool InitialPropertiesReceived(
27 const base::DictionaryValue& properties) override; 27 const base::DictionaryValue& properties) override;
28 28
29 void IPConfigPropertiesChanged(const std::string& ip_config_path, 29 void IPConfigPropertiesChanged(const std::string& ip_config_path,
30 const base::DictionaryValue& properties); 30 const base::DictionaryValue& properties);
31 31
32 // Accessors 32 // Accessors
33 const std::string& mac_address() const { return mac_address_; } 33 const std::string& mac_address() const { return mac_address_; }
34 bool scanning() const { return scanning_; }
34 35
35 // Cellular specific accessors 36 // Cellular specific accessors
36 const std::string& home_provider_id() const { return home_provider_id_; } 37 const std::string& home_provider_id() const { return home_provider_id_; }
37 bool allow_roaming() const { return allow_roaming_; } 38 bool allow_roaming() const { return allow_roaming_; }
38 bool provider_requires_roaming() const { return provider_requires_roaming_; } 39 bool provider_requires_roaming() const { return provider_requires_roaming_; }
39 bool support_network_scan() const { return support_network_scan_; } 40 bool support_network_scan() const { return support_network_scan_; }
40 bool scanning() const { return scanning_; }
41 const std::string& technology_family() const { return technology_family_; } 41 const std::string& technology_family() const { return technology_family_; }
42 const std::string& carrier() const { return carrier_; } 42 const std::string& carrier() const { return carrier_; }
43 const std::string& sim_lock_type() const { return sim_lock_type_; } 43 const std::string& sim_lock_type() const { return sim_lock_type_; }
44 uint32 sim_retries_left() const { return sim_retries_left_; } 44 uint32 sim_retries_left() const { return sim_retries_left_; }
45 bool sim_lock_enabled() const { return sim_lock_enabled_; } 45 bool sim_lock_enabled() const { return sim_lock_enabled_; }
46 const std::string& meid() const { return meid_; } 46 const std::string& meid() const { return meid_; }
47 const std::string& imei() const { return imei_; } 47 const std::string& imei() const { return imei_; }
48 const std::string& iccid() const { return iccid_; } 48 const std::string& iccid() const { return iccid_; }
49 const std::string& mdn() const { return mdn_; } 49 const std::string& mdn() const { return mdn_; }
50 const CellularScanResults& scan_results() const { return scan_results_; } 50 const CellularScanResults& scan_results() const { return scan_results_; }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Dictionary of IPConfig properties, keyed by IpConfig path. 95 // Dictionary of IPConfig properties, keyed by IpConfig path.
96 base::DictionaryValue ip_configs_; 96 base::DictionaryValue ip_configs_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(DeviceState); 98 DISALLOW_COPY_AND_ASSIGN(DeviceState);
99 }; 99 };
100 100
101 } // namespace chromeos 101 } // namespace chromeos
102 102
103 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ 103 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698