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

Unified Diff: chromeos/network/shill_property_handler.h

Issue 267433005: Provide IPConfigs in networkingPrivate.GetProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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/onc/onc_translator_shill_to_onc.cc ('k') | chromeos/network/shill_property_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/shill_property_handler.h
diff --git a/chromeos/network/shill_property_handler.h b/chromeos/network/shill_property_handler.h
index e484e9801e425e9e268e0d1a45377f9c384d689e..5a78f190fa5e18eeee111234856ae60419a740ea 100644
--- a/chromeos/network/shill_property_handler.h
+++ b/chromeos/network/shill_property_handler.h
@@ -71,6 +71,13 @@ class CHROMEOS_EXPORT ShillPropertyHandler
const std::string& key,
const base::Value& value) = 0;
+ // Called when a watched network or device IPConfig property changes.
+ virtual void UpdateIPConfigProperties(
+ ManagedState::ManagedType type,
+ const std::string& path,
+ const std::string& ip_config_path,
+ const base::DictionaryValue& properties) = 0;
+
// Called when the list of devices with portal check enabled changes.
virtual void CheckPortalListChanged(
const std::string& check_portal_list) = 0;
@@ -187,23 +194,30 @@ class CHROMEOS_EXPORT ShillPropertyHandler
const std::string& path,
const std::string& key,
const base::Value& value);
- void NetworkServicePropertyChangedCallback(const std::string& path,
- const std::string& key,
- const base::Value& value);
- // Callback for getting the IPConfig property of a Network. Handled here
- // instead of in NetworkState so that all asynchronous requests are done
+ // Request a single IPConfig object corresponding to |ip_config_path_value|
+ // from Shill.IPConfigClient and trigger a call to UpdateIPConfigProperties
+ // for the network or device corresponding to |type| and |path|.
+ void RequestIPConfig(ManagedState::ManagedType type,
+ const std::string& path,
+ const base::Value& ip_config_path_value);
+
+ // Request the IPConfig objects corresponding to entries in
+ // |ip_config_list_value| from Shill.IPConfigClient and trigger a call to
+ // UpdateIPConfigProperties with each object for the network or device
+ // corresponding to |type| and |path|.
+ void RequestIPConfigsList(ManagedState::ManagedType type,
+ const std::string& path,
+ const base::Value& ip_config_list_value);
+
+ // Callback for getting the IPConfig property of a network or device. Handled
+ // here instead of in NetworkState so that all asynchronous requests are done
// in a single place (also simplifies NetworkState considerably).
- void GetIPConfigCallback(const std::string& service_path,
+ void GetIPConfigCallback(ManagedState::ManagedType type,
+ const std::string& path,
+ const std::string& ip_config_path,
DBusMethodCallStatus call_status,
const base::DictionaryValue& properties);
- void UpdateIPConfigProperty(const std::string& service_path,
- const base::DictionaryValue& properties,
- const char* property);
-
- void NetworkDevicePropertyChangedCallback(const std::string& path,
- const std::string& key,
- const base::Value& value);
// Pointer to containing class (owns this)
Listener* listener_;
« no previous file with comments | « chromeos/network/onc/onc_translator_shill_to_onc.cc ('k') | chromeos/network/shill_property_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698