Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [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_VPN_PROVIDER_ |
| 6 | #define SHILL_VPN_PROVIDER_ |
| 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | |
| 10 | #include "shill/refptr_types.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class ControlInterface; |
| 15 | class Error; |
| 16 | class EventDispatcher; |
| 17 | class KeyValueStore; |
| 18 | class Manager; |
| 19 | class Metrics; |
| 20 | |
| 21 | class VPNProvider { |
| 22 | public: |
| 23 | VPNProvider(ControlInterface *control_interface, |
| 24 | EventDispatcher *dispatcher, |
| 25 | Metrics *metrics, |
| 26 | Manager *manager); |
| 27 | ~VPNProvider(); |
| 28 | |
| 29 | void Start(); |
| 30 | void Stop(); |
| 31 | |
| 32 | VPNServiceRefPtr GetService(const KeyValueStore &args, Error *error); |
| 33 | |
| 34 | private: |
| 35 | ControlInterface *control_interface_; |
| 36 | EventDispatcher *dispatcher_; |
| 37 | Metrics *metrics_; |
| 38 | Manager *manager_; |
| 39 | |
| 40 | DISALLOW_COPY_AND_ASSIGN(VPNProvider); |
| 41 | }; |
| 42 | |
| 43 | } // namespace shill |
| 44 | |
| 45 | #endif // SHILL_VPN_PROVIDER_ |