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

Side by Side Diff: chromeos/network/geolocation_handler.h

Issue 1819173002: SimpleGeolocation should support sending WiFi AP data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UMA added. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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
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;
stevenjb 2016/03/22 16:39:49 blank line
Alexander Alekseev 2016/03/23 00:04:46 Done.
55 GeolocationHandler(); 56 GeolocationHandler();
56 57
57 void Init(); 58 void Init();
58 59
59 // ShillManagerClient callback 60 // ShillManagerClient callback
60 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, 61 void ManagerPropertiesCallback(DBusMethodCallStatus call_status,
61 const base::DictionaryValue& properties); 62 const base::DictionaryValue& properties);
62 63
63 // Called from OnPropertyChanged or ManagerPropertiesCallback. 64 // Called from OnPropertyChanged or ManagerPropertiesCallback.
64 void HandlePropertyChanged(const std::string& key, const base::Value& value); 65 void HandlePropertyChanged(const std::string& key, const base::Value& value);
(...skipping 14 matching lines...) Expand all
79 80
80 // For Shill client callbacks 81 // For Shill client callbacks
81 base::WeakPtrFactory<GeolocationHandler> weak_ptr_factory_; 82 base::WeakPtrFactory<GeolocationHandler> weak_ptr_factory_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(GeolocationHandler); 84 DISALLOW_COPY_AND_ASSIGN(GeolocationHandler);
84 }; 85 };
85 86
86 } // namespace chromeos 87 } // namespace chromeos
87 88
88 #endif // CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_ 89 #endif // CHROMEOS_NETWORK_GEOLOCATION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698