| 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_SHILL_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 const ErrorCallback& error_callback) = 0; | 120 const ErrorCallback& error_callback) = 0; |
| 121 | 121 |
| 122 // Calls ActivateCellularModem method. | 122 // Calls ActivateCellularModem method. |
| 123 // |callback| is called after the method call succeeds. | 123 // |callback| is called after the method call succeeds. |
| 124 virtual void ActivateCellularModem( | 124 virtual void ActivateCellularModem( |
| 125 const dbus::ObjectPath& service_path, | 125 const dbus::ObjectPath& service_path, |
| 126 const std::string& carrier, | 126 const std::string& carrier, |
| 127 const base::Closure& callback, | 127 const base::Closure& callback, |
| 128 const ErrorCallback& error_callback) = 0; | 128 const ErrorCallback& error_callback) = 0; |
| 129 | 129 |
| 130 // Calls the CompleteCellularActivation method. |
| 131 // |callback| is called after the method call succeeds. |
| 132 virtual void CompleteCellularActivation( |
| 133 const dbus::ObjectPath& service_path, |
| 134 const base::Closure& callback, |
| 135 const ErrorCallback& error_callback) = 0; |
| 136 |
| 130 // DEPRECATED DO NOT USE: Calls ActivateCellularModem method and blocks until | 137 // DEPRECATED DO NOT USE: Calls ActivateCellularModem method and blocks until |
| 131 // the method call finishes. | 138 // the method call finishes. |
| 132 // | 139 // |
| 133 // TODO(hashimoto): Refactor CrosActivateCellularModem and remove this method. | 140 // TODO(hashimoto): Refactor CrosActivateCellularModem and remove this method. |
| 134 // crosbug.com/29902 | 141 // crosbug.com/29902 |
| 135 virtual bool CallActivateCellularModemAndBlock( | 142 virtual bool CallActivateCellularModemAndBlock( |
| 136 const dbus::ObjectPath& service_path, | 143 const dbus::ObjectPath& service_path, |
| 137 const std::string& carrier) = 0; | 144 const std::string& carrier) = 0; |
| 138 | 145 |
| 139 // Returns an interface for testing (stub only), or returns NULL. | 146 // Returns an interface for testing (stub only), or returns NULL. |
| 140 virtual TestInterface* GetTestInterface() = 0; | 147 virtual TestInterface* GetTestInterface() = 0; |
| 141 | 148 |
| 142 protected: | 149 protected: |
| 143 // Create() should be used instead. | 150 // Create() should be used instead. |
| 144 ShillServiceClient(); | 151 ShillServiceClient(); |
| 145 | 152 |
| 146 private: | 153 private: |
| 147 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); | 154 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); |
| 148 }; | 155 }; |
| 149 | 156 |
| 150 } // namespace chromeos | 157 } // namespace chromeos |
| 151 | 158 |
| 152 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 159 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
| OLD | NEW |