summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/shill_manager_client.h
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 08:51:17 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 08:51:17 +0000
commit2632f5046d811f8780484cbaf983f3c9a97c9ea9 (patch)
treeaee09fbc24f1bb9524de64726638ddd3c8f826f3 /chromeos/dbus/shill_manager_client.h
parentd2397d877f3cd67b0010abecb451ae390cf789b6 (diff)
downloadchromium_src-2632f5046d811f8780484cbaf983f3c9a97c9ea9.zip
chromium_src-2632f5046d811f8780484cbaf983f3c9a97c9ea9.tar.gz
chromium_src-2632f5046d811f8780484cbaf983f3c9a97c9ea9.tar.bz2
Deprecate ShillNetworkClient and add GeolocationHandler
Shill deprecated Manager.Network which was being used to get wifi access point data. This eliminates the dead code and adds GeolocationHandler which currently queries Shill.Manager for geolocation data, and caches and returns the result. BUG=167987 For chrome/browser/geolocation: TBR=joth@chromium.org Review URL: https://chromiumcodereview.appspot.com/11887008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_manager_client.h')
-rw-r--r--chromeos/dbus/shill_manager_client.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chromeos/dbus/shill_manager_client.h b/chromeos/dbus/shill_manager_client.h
index fea40da..8afce00 100644
--- a/chromeos/dbus/shill_manager_client.h
+++ b/chromeos/dbus/shill_manager_client.h
@@ -38,6 +38,7 @@ class CHROMEOS_EXPORT ShillManagerClient {
public:
virtual void AddDevice(const std::string& device_path) = 0;
virtual void RemoveDevice(const std::string& device_path) = 0;
+ virtual void ResetDevices() = 0;
virtual void AddService(const std::string& service_path,
bool add_to_watch_list) = 0;
virtual void AddServiceAtIndex(const std::string& service_path,
@@ -46,6 +47,8 @@ class CHROMEOS_EXPORT ShillManagerClient {
virtual void RemoveService(const std::string& service_path) = 0;
virtual void AddTechnology(const std::string& type, bool enabled) = 0;
virtual void RemoveTechnology(const std::string& type) = 0;
+ virtual void AddGeoNetwork(const std::string& technology,
+ const base::DictionaryValue& network) = 0;
// Used to reset all properties; does not notify observers.
virtual void ClearProperties() = 0;
@@ -77,10 +80,15 @@ class CHROMEOS_EXPORT ShillManagerClient {
// method call finishes. The caller is responsible to delete the result.
// Thie method returns NULL when method call fails.
//
- // TODO(hashimoto): Refactor CrosGetWifiAccessPoints and remove this method.
+ // TODO(hashimoto): Refactor blocking calls and remove this method.
// crosbug.com/29902
virtual base::DictionaryValue* CallGetPropertiesAndBlock() = 0;
+ // Calls GetNetworksForGeolocation method.
+ // |callback| is called after the method call succeeds.
+ virtual void GetNetworksForGeolocation(
+ const DictionaryValueCallback& callback) = 0;
+
// Calls SetProperty method.
// |callback| is called after the method call succeeds.
virtual void SetProperty(const std::string& name,