| 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_NETWORK_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const dbus::ObjectPath& network_path) = 0; | 54 const dbus::ObjectPath& network_path) = 0; |
| 55 | 55 |
| 56 // Calls GetProperties method. | 56 // Calls GetProperties method. |
| 57 // |callback| is called after the method call succeeds. | 57 // |callback| is called after the method call succeeds. |
| 58 virtual void GetProperties(const dbus::ObjectPath& network_path, | 58 virtual void GetProperties(const dbus::ObjectPath& network_path, |
| 59 const DictionaryValueCallback& callback) = 0; | 59 const DictionaryValueCallback& callback) = 0; |
| 60 | 60 |
| 61 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the | 61 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the |
| 62 // method call finishes. The caller is responsible to delete the result. | 62 // method call finishes. The caller is responsible to delete the result. |
| 63 // Thie method returns NULL when method call fails. | 63 // Thie method returns NULL when method call fails. |
| 64 // |
| 65 // TODO(hashimoto): Refactor CrosGetWifiAccessPoints and remove this method. |
| 66 // crosbug.com/29902 |
| 64 virtual base::DictionaryValue* CallGetPropertiesAndBlock( | 67 virtual base::DictionaryValue* CallGetPropertiesAndBlock( |
| 65 const dbus::ObjectPath& network_path) = 0; | 68 const dbus::ObjectPath& network_path) = 0; |
| 66 | 69 |
| 67 protected: | 70 protected: |
| 68 // Create() should be used instead. | 71 // Create() should be used instead. |
| 69 FlimflamNetworkClient(); | 72 FlimflamNetworkClient(); |
| 70 | 73 |
| 71 private: | 74 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(FlimflamNetworkClient); | 75 DISALLOW_COPY_AND_ASSIGN(FlimflamNetworkClient); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace chromeos | 78 } // namespace chromeos |
| 76 | 79 |
| 77 #endif // CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ | 80 #endif // CHROMEOS_DBUS_FLIMFLAM_NETWORK_CLIENT_H_ |
| OLD | NEW |