blob: 41a96fd0f693e9d3259ff965e1c28820dca405c9 [file] [log] [blame]
Darin Petkovc90fe522011-07-15 13:59:47 -07001// Copyright (c) 2011 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/proxy_factory.h"
6
7#include "shill/modem_manager_proxy.h"
Darin Petkovd1967262011-07-18 14:55:18 -07008#include "shill/supplicant_interface_proxy.h"
9#include "shill/supplicant_process_proxy.h"
Darin Petkovc90fe522011-07-15 13:59:47 -070010
11namespace shill {
12
13ProxyFactory *ProxyFactory::factory_ = NULL;
14
15ProxyFactory::ProxyFactory() {}
16
17ProxyFactory::~ProxyFactory() {}
18
19ModemManagerProxyInterface *ProxyFactory::CreateModemManagerProxy(
20 ModemManager *manager,
21 const std::string &path,
22 const std::string &service) {
23 return new ModemManagerProxy(manager, path, service);
24}
25
Darin Petkovd1967262011-07-18 14:55:18 -070026SupplicantProcessProxyInterface *ProxyFactory::CreateProcessProxy(
27 const char *dbus_path,
28 const char *dbus_addr) {
29 return new SupplicantProcessProxy(dbus_path, dbus_addr);
30}
31
32SupplicantInterfaceProxyInterface *ProxyFactory::CreateInterfaceProxy(
33 const WiFiRefPtr &wifi,
34 const DBus::Path &object_path,
35 const char *dbus_addr) {
36 return new SupplicantInterfaceProxy(wifi, object_path, dbus_addr);
37}
38
Darin Petkovc90fe522011-07-15 13:59:47 -070039} // namespace shill