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 "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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Do not use this. It exists temporarily for internet_options_handler.cc | 54 // Do not use this. It exists temporarily for internet_options_handler.cc |
55 // which is being deprecated. | 55 // which is being deprecated. |
56 const base::DictionaryValue& properties() const { return properties_; } | 56 const base::DictionaryValue& properties() const { return properties_; } |
57 | 57 |
58 // Ethernet specific accessors | 58 // Ethernet specific accessors |
59 bool eap_authentication_completed() const { | 59 bool eap_authentication_completed() const { |
60 return eap_authentication_completed_; | 60 return eap_authentication_completed_; |
61 } | 61 } |
62 | 62 |
| 63 // Returns the IP Address for |type| if it exists or an empty string. |
| 64 std::string GetIpAddressByType(const std::string& type) const; |
| 65 |
63 // Returns true if the technology family is GSM and sim_present_ is false. | 66 // Returns true if the technology family is GSM and sim_present_ is false. |
64 bool IsSimAbsent() const; | 67 bool IsSimAbsent() const; |
65 | 68 |
66 private: | 69 private: |
67 // Common Device Properties | 70 // Common Device Properties |
68 std::string mac_address_; | 71 std::string mac_address_; |
69 | 72 |
70 // Cellular specific properties | 73 // Cellular specific properties |
71 std::string home_provider_id_; | 74 std::string home_provider_id_; |
72 bool allow_roaming_; | 75 bool allow_roaming_; |
(...skipping 19 matching lines...) Expand all Loading... |
92 | 95 |
93 // Dictionary of IPConfig properties, keyed by IpConfig path. | 96 // Dictionary of IPConfig properties, keyed by IpConfig path. |
94 base::DictionaryValue ip_configs_; | 97 base::DictionaryValue ip_configs_; |
95 | 98 |
96 DISALLOW_COPY_AND_ASSIGN(DeviceState); | 99 DISALLOW_COPY_AND_ASSIGN(DeviceState); |
97 }; | 100 }; |
98 | 101 |
99 } // namespace chromeos | 102 } // namespace chromeos |
100 | 103 |
101 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ | 104 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ |
OLD | NEW |