| 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_NETWORK_PROFILE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual ~NetworkProfileHandler(); | 35 virtual ~NetworkProfileHandler(); |
| 36 | 36 |
| 37 void AddObserver(NetworkProfileObserver* observer); | 37 void AddObserver(NetworkProfileObserver* observer); |
| 38 void RemoveObserver(NetworkProfileObserver* observer); | 38 void RemoveObserver(NetworkProfileObserver* observer); |
| 39 | 39 |
| 40 void GetManagerPropertiesCallback(DBusMethodCallStatus call_status, | 40 void GetManagerPropertiesCallback(DBusMethodCallStatus call_status, |
| 41 const base::DictionaryValue& properties); | 41 const base::DictionaryValue& properties); |
| 42 | 42 |
| 43 // ShillPropertyChangedObserver overrides | 43 // ShillPropertyChangedObserver overrides |
| 44 virtual void OnPropertyChanged(const std::string& name, | 44 virtual void OnPropertyChanged(const std::string& name, |
| 45 const base::Value& value) OVERRIDE; | 45 const base::Value& value) override; |
| 46 | 46 |
| 47 void GetProfilePropertiesCallback(const std::string& profile_path, | 47 void GetProfilePropertiesCallback(const std::string& profile_path, |
| 48 const base::DictionaryValue& properties); | 48 const base::DictionaryValue& properties); |
| 49 | 49 |
| 50 const NetworkProfile* GetProfileForPath( | 50 const NetworkProfile* GetProfileForPath( |
| 51 const std::string& profile_path) const; | 51 const std::string& profile_path) const; |
| 52 const NetworkProfile* GetProfileForUserhash( | 52 const NetworkProfile* GetProfileForUserhash( |
| 53 const std::string& userhash) const; | 53 const std::string& userhash) const; |
| 54 | 54 |
| 55 // Returns the first profile entry with a non-empty userhash. | 55 // Returns the first profile entry with a non-empty userhash. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 78 // For Shill client callbacks | 78 // For Shill client callbacks |
| 79 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; | 79 base::WeakPtrFactory<NetworkProfileHandler> weak_ptr_factory_; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); | 82 DISALLOW_COPY_AND_ASSIGN(NetworkProfileHandler); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace chromeos | 85 } // namespace chromeos |
| 86 | 86 |
| 87 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ | 87 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_HANDLER_H_ |
| OLD | NEW |