diff options
author | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-15 10:00:39 +0000 |
---|---|---|
committer | dubroy@chromium.org <dubroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-15 10:00:39 +0000 |
commit | b7c377e5e5e0daf67378e96368c7b8bf63b1883d (patch) | |
tree | 023544da3eaeb51cebc1e2a88bc121f563d7b11d /chromeos/dbus/shill_manager_client.h | |
parent | 8fe381e9c7ebec0b30ba72791fbe43362003459a (diff) | |
download | chromium_src-b7c377e5e5e0daf67378e96368c7b8bf63b1883d.zip chromium_src-b7c377e5e5e0daf67378e96368c7b8bf63b1883d.tar.gz chromium_src-b7c377e5e5e0daf67378e96368c7b8bf63b1883d.tar.bz2 |
Reland 176858 - Deprecate ShillNetworkClient and add GeolocationHandler
> 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
TBR=stevenjb@chromium.org
BUG=None
Review URL: https://codereview.chromium.org/11880043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_manager_client.h')
-rw-r--r-- | chromeos/dbus/shill_manager_client.h | 10 |
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, |