| OLD | NEW |
| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const base::Value& value) override; | 28 const base::Value& value) override; |
| 29 bool InitialPropertiesReceived( | 29 bool InitialPropertiesReceived( |
| 30 const base::DictionaryValue& properties) override; | 30 const base::DictionaryValue& properties) override; |
| 31 | 31 |
| 32 void IPConfigPropertiesChanged(const std::string& ip_config_path, | 32 void IPConfigPropertiesChanged(const std::string& ip_config_path, |
| 33 const base::DictionaryValue& properties); | 33 const base::DictionaryValue& properties); |
| 34 | 34 |
| 35 // Accessors | 35 // Accessors |
| 36 const std::string& mac_address() const { return mac_address_; } | 36 const std::string& mac_address() const { return mac_address_; } |
| 37 bool scanning() const { return scanning_; } | 37 bool scanning() const { return scanning_; } |
| 38 void set_scanning(bool scanning) { scanning_ = scanning; } |
| 38 | 39 |
| 39 // Cellular specific accessors | 40 // Cellular specific accessors |
| 40 const std::string& home_provider_id() const { return home_provider_id_; } | 41 const std::string& home_provider_id() const { return home_provider_id_; } |
| 41 bool allow_roaming() const { return allow_roaming_; } | 42 bool allow_roaming() const { return allow_roaming_; } |
| 42 bool provider_requires_roaming() const { return provider_requires_roaming_; } | 43 bool provider_requires_roaming() const { return provider_requires_roaming_; } |
| 43 bool support_network_scan() const { return support_network_scan_; } | 44 bool support_network_scan() const { return support_network_scan_; } |
| 44 const std::string& technology_family() const { return technology_family_; } | 45 const std::string& technology_family() const { return technology_family_; } |
| 45 const std::string& carrier() const { return carrier_; } | 46 const std::string& carrier() const { return carrier_; } |
| 46 const std::string& sim_lock_type() const { return sim_lock_type_; } | 47 const std::string& sim_lock_type() const { return sim_lock_type_; } |
| 47 uint32_t sim_retries_left() const { return sim_retries_left_; } | 48 uint32_t sim_retries_left() const { return sim_retries_left_; } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 99 |
| 99 // Dictionary of IPConfig properties, keyed by IpConfig path. | 100 // Dictionary of IPConfig properties, keyed by IpConfig path. |
| 100 base::DictionaryValue ip_configs_; | 101 base::DictionaryValue ip_configs_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(DeviceState); | 103 DISALLOW_COPY_AND_ASSIGN(DeviceState); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace chromeos | 106 } // namespace chromeos |
| 106 | 107 |
| 107 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ | 108 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ |
| OLD | NEW |