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

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

Issue 2819993002: [CrOS Tether] Add the notion of a tether DeviceState. (Closed)
Patch Set: stevenjb@ comment. Created 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chromeos/components/tether/tether_device_state_manager.cc ('k') | chromeos/network/managed_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698