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

Unified Diff: chromeos/network/network_state_handler.h

Issue 2819383002: [CrOS Tether] Update NetworkState to include tether properties and integrate into NetworkStateHandl… (Closed)
Patch Set: Comments. 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
Index: chromeos/network/network_state_handler.h
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
index 34bac738572f970ef44d7156d1aaa3b870bca3f7..267b01d9c9f61a4f6ae526cf562bdbc98c52ec0a 100644
--- a/chromeos/network/network_state_handler.h
+++ b/chromeos/network/network_state_handler.h
@@ -208,7 +208,19 @@ class CHROMEOS_EXPORT NetworkStateHandler
// refer to and fetch this NetworkState in the future.
// NOTE: only GetNetworkStateFromGuid is supported to fetch "tether"
// NetworkStates.
- void AddTetherNetworkState(const std::string& guid, const std::string& name);
+ void AddTetherNetworkState(const std::string& guid,
+ const std::string& name,
+ const std::string& carrier,
+ int battery_percentage,
+ int signal_strength);
+
+ // Updates the tether properties (carrier, battery percentage, and signal
+ // strength) for a network which has already been added via
+ // AddTetherNetworkState. Returns whether the update was successful.
+ bool UpdateTetherNetworkProperties(const std::string& guid,
+ const std::string& carrier,
+ int battery_percentage,
+ int signal_strength);
// Remove a Tether NetworkState, using the same |guid| passed to
// AddTetherNetworkState.

Powered by Google App Engine
This is Rietveld 408576698