Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 1 | // 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 Petkov | d196726 | 2011-07-18 14:55:18 -0700 | [diff] [blame^] | 8 | #include "shill/supplicant_interface_proxy.h" |
| 9 | #include "shill/supplicant_process_proxy.h" |
Darin Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 10 | |
| 11 | namespace shill { |
| 12 | |
| 13 | ProxyFactory *ProxyFactory::factory_ = NULL; |
| 14 | |
| 15 | ProxyFactory::ProxyFactory() {} |
| 16 | |
| 17 | ProxyFactory::~ProxyFactory() {} |
| 18 | |
| 19 | ModemManagerProxyInterface *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 Petkov | d196726 | 2011-07-18 14:55:18 -0700 | [diff] [blame^] | 26 | SupplicantProcessProxyInterface *ProxyFactory::CreateProcessProxy( |
| 27 | const char *dbus_path, |
| 28 | const char *dbus_addr) { |
| 29 | return new SupplicantProcessProxy(dbus_path, dbus_addr); |
| 30 | } |
| 31 | |
| 32 | SupplicantInterfaceProxyInterface *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 Petkov | c90fe52 | 2011-07-15 13:59:47 -0700 | [diff] [blame] | 39 | } // namespace shill |