blob: 44a47699559b21bd06d26633c3ece2c9d211a112 [file] [log] [blame]
Darin Petkov33af05c2012-02-28 10:10:30 +01001// 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#include "shill/vpn_service.h"
6
7#include <base/logging.h>
8
9#include "shill/technology.h"
10#include "shill/vpn_driver.h"
11
12using std::string;
13
14namespace shill {
15
Darin Petkov79d74c92012-03-07 17:20:32 +010016VPNService::VPNService(ControlInterface *control,
Darin Petkov33af05c2012-02-28 10:10:30 +010017 EventDispatcher *dispatcher,
18 Metrics *metrics,
19 Manager *manager,
20 VPNDriver *driver)
Darin Petkov79d74c92012-03-07 17:20:32 +010021 : Service(control, dispatcher, metrics, manager, Technology::kVPN),
Darin Petkov33af05c2012-02-28 10:10:30 +010022 driver_(driver) {}
23
24VPNService::~VPNService() {}
25
26void VPNService::Connect(Error *error) {
Darin Petkov79d74c92012-03-07 17:20:32 +010027 driver_->Connect(this, error);
Darin Petkov33af05c2012-02-28 10:10:30 +010028}
29
30string VPNService::GetStorageIdentifier() const {
31 NOTIMPLEMENTED();
32 return "";
33}
34
35string VPNService::GetDeviceRpcId(Error *error) {
36 NOTIMPLEMENTED();
37 error->Populate(Error::kNotSupported);
38 return "/";
39}
40
41} // namespace shill