Chromium Code Reviews| Index: chromeos/network/network_state.h |
| diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h |
| index d43c56273e7c02f1a7947d0889342e8f00777698..05558ceb7a9ea94a78d8b866bf29e8dd54835914 100644 |
| --- a/chromeos/network/network_state.h |
| +++ b/chromeos/network/network_state.h |
| @@ -100,6 +100,8 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
| const std::string& roaming() const { return roaming_; } |
| const std::string& payment_url() const { return payment_url_; } |
| bool cellular_out_of_credits() const { return cellular_out_of_credits_; } |
| + const std::string& tethering_state() const { return tethering_state_; } |
| + bool IsUsingMobileData() const; |
|
xiyuan
2017/06/01 20:18:27
nit: This is not an accessor. Move it up ?
weidongg
2017/06/01 20:41:00
Done.
|
| // VPN property accessors |
| const std::string& vpn_provider_type() const { return vpn_provider_type_; } |
| @@ -226,6 +228,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
| std::string roaming_; |
| std::string payment_url_; |
| bool cellular_out_of_credits_ = false; |
| + std::string tethering_state_; |
| // VPN properties, used to construct the display name and to show the correct |
| // configuration dialog. |
| @@ -235,6 +238,7 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState { |
| // Tether properties. |
| std::string carrier_; |
| int battery_percentage_; |
| + |
| // Whether the current device has already connected to the tether host device |
| // providing the hotspot corresponding to this NetworkState. |
| // Note: this means that the current device has already connected to the |