| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 bool wifi_enabled() const { return wifi_enabled_; } | 46 bool wifi_enabled() const { return wifi_enabled_; } |
| 47 | 47 |
| 48 // ShillPropertyChangedObserver overrides | 48 // ShillPropertyChangedObserver overrides |
| 49 void OnPropertyChanged(const std::string& key, | 49 void OnPropertyChanged(const std::string& key, |
| 50 const base::Value& value) override; | 50 const base::Value& value) override; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 friend class NetworkHandler; | 53 friend class NetworkHandler; |
| 54 friend class GeolocationHandlerTest; | 54 friend class GeolocationHandlerTest; |
| 55 friend class SimpleGeolocationWiFiTest; |
| 56 |
| 55 GeolocationHandler(); | 57 GeolocationHandler(); |
| 56 | 58 |
| 57 void Init(); | 59 void Init(); |
| 58 | 60 |
| 59 // ShillManagerClient callback | 61 // ShillManagerClient callback |
| 60 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, | 62 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, |
| 61 const base::DictionaryValue& properties); | 63 const base::DictionaryValue& properties); |
| 62 | 64 |
| 63 // Called from OnPropertyChanged or ManagerPropertiesCallback. | 65 // Called from OnPropertyChanged or ManagerPropertiesCallback. |
| 64 void HandlePropertyChanged(const std::string& key, const base::Value& value); | 66 void HandlePropertyChanged(const std::string& key, const base::Value& value); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 79 | 81 |
| 80 // For Shill client callbacks | 82 // For Shill client callbacks |
| 81 base::WeakPtrFactory<GeolocationHandler> weak_ptr_factory_; | 83 base::WeakPtrFactory<GeolocationHandler> weak_ptr_factory_; |
| 82 | 84 |
| 83 DISALLOW_COPY_AND_ASSIGN(GeolocationHandler); | 85 DISALLOW_COPY_AND_ASSIGN(GeolocationHandler); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace chromeos | 88 } // namespace chromeos |
| 87 | 89 |
| 88 #endif // CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ | 90 #endif // CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ |
| OLD | NEW |