blob: 7a86e59f716dcf6e1b1e8eb8e45ca3d89c5fd859 [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/ethernet/ethernet_temporary_service.h"
#include <string>
#include "shill/control_interface.h"
#include "shill/dbus_adaptor.h"
#include "shill/event_dispatcher.h"
#include "shill/manager.h"
#include "shill/metrics.h"
using std::string;
namespace shill {
EthernetTemporaryService::EthernetTemporaryService(
ControlInterface *control_interface,
EventDispatcher *dispatcher,
Metrics *metrics,
Manager *manager,
const string &storage_identifier)
: Service(control_interface,
dispatcher, metrics,
manager,
Technology::kEthernet),
storage_identifier_(storage_identifier) {
set_friendly_name("Ethernet");
}
EthernetTemporaryService::~EthernetTemporaryService() {}
std::string EthernetTemporaryService::GetDeviceRpcId(Error */*error*/) const {
return DBusAdaptor::kNullPath;
}
string EthernetTemporaryService::GetStorageIdentifier() const {
return storage_identifier_;
}
bool EthernetTemporaryService::IsVisible() const {
return false;
}
} // namespace shill