| 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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/dbus_client_implementation_type.h" | 13 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 14 #include "chromeos/dbus/dbus_method_call_status.h" |
| 14 #include "chromeos/dbus/shill_client_helper.h" | 15 #include "chromeos/dbus/shill_client_helper.h" |
| 16 #include "dbus/object_path.h" |
| 15 | 17 |
| 16 namespace dbus { | 18 namespace dbus { |
| 17 | 19 |
| 18 class Bus; | 20 class Bus; |
| 19 | 21 |
| 20 } // namespace dbus | 22 } // namespace dbus |
| 21 | 23 |
| 22 namespace chromeos { | 24 namespace chromeos { |
| 23 | 25 |
| 24 class ShillPropertyChangedObserver; | 26 class ShillPropertyChangedObserver; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 virtual void DisableTechnology(const std::string& type, | 118 virtual void DisableTechnology(const std::string& type, |
| 117 const base::Closure& callback, | 119 const base::Closure& callback, |
| 118 const ErrorCallback& error_callback) = 0; | 120 const ErrorCallback& error_callback) = 0; |
| 119 | 121 |
| 120 // Calls ConfigureService method. | 122 // Calls ConfigureService method. |
| 121 // |callback| is called after the method call succeeds. | 123 // |callback| is called after the method call succeeds. |
| 122 virtual void ConfigureService(const base::DictionaryValue& properties, | 124 virtual void ConfigureService(const base::DictionaryValue& properties, |
| 123 const ObjectPathCallback& callback, | 125 const ObjectPathCallback& callback, |
| 124 const ErrorCallback& error_callback) = 0; | 126 const ErrorCallback& error_callback) = 0; |
| 125 | 127 |
| 128 // Calls ConfigureServiceForProfile method. |
| 129 // |callback| is called with the created service if the method call succeeds. |
| 130 virtual void ConfigureServiceForProfile( |
| 131 const dbus::ObjectPath& profile_path, |
| 132 const base::DictionaryValue& properties, |
| 133 const ObjectPathCallback& callback, |
| 134 const ErrorCallback& error_callback) = 0; |
| 135 |
| 126 // Calls GetService method. | 136 // Calls GetService method. |
| 127 // |callback| is called after the method call succeeds. | 137 // |callback| is called after the method call succeeds. |
| 128 virtual void GetService(const base::DictionaryValue& properties, | 138 virtual void GetService(const base::DictionaryValue& properties, |
| 129 const ObjectPathCallback& callback, | 139 const ObjectPathCallback& callback, |
| 130 const ErrorCallback& error_callback) = 0; | 140 const ErrorCallback& error_callback) = 0; |
| 131 | 141 |
| 132 // Verify that the given data corresponds to a trusted device, and return true | 142 // Verify that the given data corresponds to a trusted device, and return true |
| 133 // to the callback if it is. | 143 // to the callback if it is. |
| 134 virtual void VerifyDestination(const std::string& certificate, | 144 virtual void VerifyDestination(const std::string& certificate, |
| 135 const std::string& public_key, | 145 const std::string& public_key, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Create() should be used instead. | 188 // Create() should be used instead. |
| 179 ShillManagerClient(); | 189 ShillManagerClient(); |
| 180 | 190 |
| 181 private: | 191 private: |
| 182 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 192 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
| 183 }; | 193 }; |
| 184 | 194 |
| 185 } // namespace chromeos | 195 } // namespace chromeos |
| 186 | 196 |
| 187 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 197 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |