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

Unified Diff: chromeos/network/network_state.h

Issue 2844363003: [CrOS Tether] Add HasConnectedToHost property for Tether networks. (Closed)
Patch Set: Rebased. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state.h
diff --git a/chromeos/network/network_state.h b/chromeos/network/network_state.h
index 995207d3f3473da9a479eb518e4b17e46a7e0dbb..d43c56273e7c02f1a7947d0889342e8f00777698 100644
--- a/chromeos/network/network_state.h
+++ b/chromeos/network/network_state.h
@@ -114,6 +114,12 @@ class CHROMEOS_EXPORT NetworkState : public ManagedState {
}
const std::string& carrier() const { return carrier_; }
void set_carrier(const std::string& carrier) { carrier_ = carrier; }
+ bool tether_has_connected_to_host() const {
+ return tether_has_connected_to_host_;
+ }
+ void set_tether_has_connected_to_host(bool tether_has_connected_to_host) {
+ tether_has_connected_to_host_ = tether_has_connected_to_host;
+ }
const std::string& tether_guid() const { return tether_guid_; }
void set_tether_guid(const std::string& guid) { tether_guid_ = guid; }
@@ -229,6 +235,12 @@ 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
+ // tether host, but it does not necessarily mean that the current device has
+ // connected to the Tether network corresponding to this NetworkState.
+ bool tether_has_connected_to_host_;
// TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler
// provides proxy configuration. crbug.com/241775
« no previous file with comments | « chromeos/network/network_configuration_handler_unittest.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698