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_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // |callback| is called after the method call succeeds. | 89 // |callback| is called after the method call succeeds. |
90 virtual void Remove(const dbus::ObjectPath& service_path, | 90 virtual void Remove(const dbus::ObjectPath& service_path, |
91 const VoidCallback& callback) = 0; | 91 const VoidCallback& callback) = 0; |
92 | 92 |
93 // Calls ActivateCellularModem method. | 93 // Calls ActivateCellularModem method. |
94 // |callback| is called after the method call succeeds. | 94 // |callback| is called after the method call succeeds. |
95 virtual void ActivateCellularModem(const dbus::ObjectPath& service_path, | 95 virtual void ActivateCellularModem(const dbus::ObjectPath& service_path, |
96 const std::string& carrier, | 96 const std::string& carrier, |
97 const VoidCallback& callback) = 0; | 97 const VoidCallback& callback) = 0; |
98 | 98 |
| 99 // DEPRECATED DO NOT USE: Calls ActivateCellularModem method and blocks until |
| 100 // the method call finishes. |
| 101 // |
| 102 // TODO(hashimoto): Refactor CrosActivateCellularModem and remove this method. |
| 103 // crosbug.com/29902 |
| 104 virtual bool CallActivateCellularModemAndBlock( |
| 105 const dbus::ObjectPath& service_path, |
| 106 const std::string& carrier) = 0; |
| 107 |
99 protected: | 108 protected: |
100 // Create() should be used instead. | 109 // Create() should be used instead. |
101 FlimflamServiceClient(); | 110 FlimflamServiceClient(); |
102 | 111 |
103 private: | 112 private: |
104 DISALLOW_COPY_AND_ASSIGN(FlimflamServiceClient); | 113 DISALLOW_COPY_AND_ASSIGN(FlimflamServiceClient); |
105 }; | 114 }; |
106 | 115 |
107 } // namespace chromeos | 116 } // namespace chromeos |
108 | 117 |
109 #endif // CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ | 118 #endif // CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ |
OLD | NEW |