Chromium Code Reviews| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 // |callback| is called after the method call succeeds. | 87 // |callback| is called after the method call succeeds. |
| 88 virtual void Remove(const dbus::ObjectPath& service_path, | 88 virtual void Remove(const dbus::ObjectPath& service_path, |
| 89 const VoidCallback& callback) = 0; | 89 const VoidCallback& callback) = 0; |
| 90 | 90 |
| 91 // Calls ActivateCellularModem method. | 91 // Calls ActivateCellularModem method. |
| 92 // |callback| is called after the method call succeeds. | 92 // |callback| is called after the method call succeeds. |
| 93 virtual void ActivateCellularModem(const dbus::ObjectPath& service_path, | 93 virtual void ActivateCellularModem(const dbus::ObjectPath& service_path, |
| 94 const std::string& carrier, | 94 const std::string& carrier, |
| 95 const VoidCallback& callback) = 0; | 95 const VoidCallback& callback) = 0; |
| 96 | 96 |
| 97 // DEPRECATED DO NOT USE: Calls ActivateCellularModem method and blocks until | |
| 98 // the method call finishes. | |
| 99 // | |
| 100 // TODO(hashimoto): Refactor CrosActivateCellularModem and remove this method. | |
|
stevenjb
2012/04/23 21:46:18
This is going to be a non-trivial but important ch
hashimoto
2012/04/24 04:52:39
Done.
| |
| 101 virtual bool CallActivateCellularModemAndBlock( | |
| 102 const dbus::ObjectPath& service_path, | |
| 103 const std::string& carrier) = 0; | |
| 104 | |
| 97 protected: | 105 protected: |
| 98 // Create() should be used instead. | 106 // Create() should be used instead. |
| 99 FlimflamServiceClient(); | 107 FlimflamServiceClient(); |
| 100 | 108 |
| 101 private: | 109 private: |
| 102 DISALLOW_COPY_AND_ASSIGN(FlimflamServiceClient); | 110 DISALLOW_COPY_AND_ASSIGN(FlimflamServiceClient); |
| 103 }; | 111 }; |
| 104 | 112 |
| 105 } // namespace chromeos | 113 } // namespace chromeos |
| 106 | 114 |
| 107 #endif // CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ | 115 #endif // CHROMEOS_DBUS_FLIMFLAM_SERVICE_CLIENT_H_ |
| OLD | NEW |