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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "chromeos/dbus/dbus_method_call_status.h" | 10 #include "chromeos/dbus/dbus_method_call_status.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // This sends a request for wifi access point data. If data is already | 37 // This sends a request for wifi access point data. If data is already |
38 // available, returns |true|, fills |access_points| with the latest access | 38 // available, returns |true|, fills |access_points| with the latest access |
39 // point data, and sets |age_ms| to the time since the last update in MS. | 39 // point data, and sets |age_ms| to the time since the last update in MS. |
40 bool GetWifiAccessPoints(WifiAccessPointVector* access_points, int64* age_ms); | 40 bool GetWifiAccessPoints(WifiAccessPointVector* access_points, int64* age_ms); |
41 | 41 |
42 bool wifi_enabled() const { return wifi_enabled_; } | 42 bool wifi_enabled() const { return wifi_enabled_; } |
43 | 43 |
44 // ShillPropertyChangedObserver overrides | 44 // ShillPropertyChangedObserver overrides |
45 virtual void OnPropertyChanged(const std::string& key, | 45 virtual void OnPropertyChanged(const std::string& key, |
46 const base::Value& value) OVERRIDE; | 46 const base::Value& value) override; |
47 | 47 |
48 private: | 48 private: |
49 friend class NetworkHandler; | 49 friend class NetworkHandler; |
50 friend class GeolocationHandlerTest; | 50 friend class GeolocationHandlerTest; |
51 GeolocationHandler(); | 51 GeolocationHandler(); |
52 | 52 |
53 void Init(); | 53 void Init(); |
54 | 54 |
55 // ShillManagerClient callback | 55 // ShillManagerClient callback |
56 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, | 56 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, |
(...skipping 18 matching lines...) Expand all Loading... |
75 | 75 |
76 // For Shill client callbacks | 76 // For Shill client callbacks |
77 base::WeakPtrFactory<GeolocationHandler> weak_ptr_factory_; | 77 base::WeakPtrFactory<GeolocationHandler> weak_ptr_factory_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(GeolocationHandler); | 79 DISALLOW_COPY_AND_ASSIGN(GeolocationHandler); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace chromeos | 82 } // namespace chromeos |
83 | 83 |
84 #endif // CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ | 84 #endif // CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ |
OLD | NEW |