| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void SetPropertyChangedHandler( | 42 virtual void SetPropertyChangedHandler( |
| 43 const PropertyChangedHandler& handler) = 0; | 43 const PropertyChangedHandler& handler) = 0; |
| 44 | 44 |
| 45 // Resets PropertyChanged signal handler. | 45 // Resets PropertyChanged signal handler. |
| 46 virtual void ResetPropertyChangedHandler() = 0; | 46 virtual void ResetPropertyChangedHandler() = 0; |
| 47 | 47 |
| 48 // Calls GetProperties method. | 48 // Calls GetProperties method. |
| 49 // |callback| is called after the method call succeeds. | 49 // |callback| is called after the method call succeeds. |
| 50 virtual void GetProperties(const DictionaryValueCallback& callback) = 0; | 50 virtual void GetProperties(const DictionaryValueCallback& callback) = 0; |
| 51 | 51 |
| 52 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the |
| 53 // method call finishes. The caller is responsible to delete the result. |
| 54 // Thie method returns NULL when method call fails. |
| 55 // |
| 56 // TODO(hashimoto): Refactor CrosGetWifiAccessPoints and remove this method. |
| 57 // crosbug.com/29902 |
| 58 virtual base::DictionaryValue* CallGetPropertiesAndBlock() = 0; |
| 59 |
| 52 // Calls SetProperty method. | 60 // Calls SetProperty method. |
| 53 // |callback| is called after the method call succeeds. | 61 // |callback| is called after the method call succeeds. |
| 54 virtual void SetProperty(const std::string& name, | 62 virtual void SetProperty(const std::string& name, |
| 55 const base::Value& value, | 63 const base::Value& value, |
| 56 const VoidCallback& callback) = 0; | 64 const VoidCallback& callback) = 0; |
| 57 | 65 |
| 58 // Calls RequestScan method. | 66 // Calls RequestScan method. |
| 59 // |callback| is called after the method call succeeds. | 67 // |callback| is called after the method call succeeds. |
| 60 virtual void RequestScan(const std::string& type, | 68 virtual void RequestScan(const std::string& type, |
| 61 const VoidCallback& callback) = 0; | 69 const VoidCallback& callback) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 84 // Create() should be used instead. | 92 // Create() should be used instead. |
| 85 FlimflamManagerClient(); | 93 FlimflamManagerClient(); |
| 86 | 94 |
| 87 private: | 95 private: |
| 88 DISALLOW_COPY_AND_ASSIGN(FlimflamManagerClient); | 96 DISALLOW_COPY_AND_ASSIGN(FlimflamManagerClient); |
| 89 }; | 97 }; |
| 90 | 98 |
| 91 } // namespace chromeos | 99 } // namespace chromeos |
| 92 | 100 |
| 93 #endif // CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ | 101 #endif // CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ |
| OLD | NEW |