Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_WIMAX_MANAGER_PROXY_INTERFACE_H_ |
| 6 | #define SHILL_WIMAX_MANAGER_PROXY_INTERFACE_H_ |
| 7 | |
| 8 | #include <vector> |
| 9 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 10 | #include <base/callback.h> |
| 11 | |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 12 | #include "shill/accessor_interface.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class Error; |
| 17 | |
| 18 | // These are the methods that a WiMaxManager proxy must support. The interface |
| 19 | // is provided so that it can be mocked in tests. |
| 20 | class WiMaxManagerProxyInterface { |
| 21 | public: |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 22 | typedef base::Callback<void(const RpcIdentifiers &)> DevicesChangedCallback; |
| 23 | |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 24 | virtual ~WiMaxManagerProxyInterface() {} |
| 25 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 26 | virtual void set_devices_changed_callback( |
| 27 | const DevicesChangedCallback &callback) = 0; |
| 28 | |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 29 | // Properties. |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 30 | virtual RpcIdentifiers Devices(Error *error) = 0; |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | } // namespace shill |
| 34 | |
| 35 | #endif // SHILL_WIMAX_MANAGER_PROXY_INTERFACE_H_ |