Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 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_REFPTR_TYPES_ |
| 6 | #define SHILL_REFPTR_TYPES_ |
| 7 | |
| 8 | #include <base/memory/ref_counted.h> |
| 9 | |
| 10 | namespace shill { |
| 11 | |
Wade Guthrie | efe1f0c | 2013-02-26 17:42:01 -0800 | [diff] [blame] | 12 | class AttributeList; |
| 13 | typedef scoped_refptr<const AttributeList> AttributeListConstRefPtr; |
| 14 | typedef scoped_refptr<AttributeList> AttributeListRefPtr; |
| 15 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 16 | class Device; |
| 17 | typedef scoped_refptr<const Device> DeviceConstRefPtr; |
| 18 | typedef scoped_refptr<Device> DeviceRefPtr; |
| 19 | |
| 20 | class Cellular; |
| 21 | typedef scoped_refptr<const Cellular> CellularConstRefPtr; |
| 22 | typedef scoped_refptr<Cellular> CellularRefPtr; |
| 23 | |
| 24 | class Ethernet; |
| 25 | typedef scoped_refptr<const Ethernet> EthernetConstRefPtr; |
| 26 | typedef scoped_refptr<Ethernet> EthernetRefPtr; |
| 27 | |
Darin Petkov | f20994f | 2012-03-05 16:12:19 +0100 | [diff] [blame] | 28 | class VPN; |
| 29 | typedef scoped_refptr<const VPN> VPNConstRefPtr; |
| 30 | typedef scoped_refptr<VPN> VPNRefPtr; |
| 31 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 32 | class WiFi; |
| 33 | typedef scoped_refptr<const WiFi> WiFiConstRefPtr; |
| 34 | typedef scoped_refptr<WiFi> WiFiRefPtr; |
| 35 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 36 | class WiMax; |
| 37 | typedef scoped_refptr<const WiMax> WiMaxConstRefPtr; |
| 38 | typedef scoped_refptr<WiMax> WiMaxRefPtr; |
| 39 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 40 | class Endpoint; |
| 41 | typedef scoped_refptr<const Endpoint> EndpointConstRefPtr; |
| 42 | typedef scoped_refptr<Endpoint> EndpointRefPtr; |
| 43 | |
| 44 | class WiFiEndpoint; |
| 45 | typedef scoped_refptr<const WiFiEndpoint> WiFiEndpointConstRefPtr; |
| 46 | typedef scoped_refptr<WiFiEndpoint> WiFiEndpointRefPtr; |
| 47 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 48 | class Service; |
| 49 | typedef scoped_refptr<const Service> ServiceConstRefPtr; |
| 50 | typedef scoped_refptr<Service> ServiceRefPtr; |
| 51 | |
| 52 | class CellularService; |
| 53 | typedef scoped_refptr<const CellularService> CellularServiceConstRefPtr; |
| 54 | typedef scoped_refptr<CellularService> CellularServiceRefPtr; |
| 55 | |
| 56 | class EthernetService; |
| 57 | typedef scoped_refptr<const EthernetService> EthernetServiceConstRefPtr; |
| 58 | typedef scoped_refptr<EthernetService> EthernetServiceRefPtr; |
| 59 | |
Darin Petkov | 33af05c | 2012-02-28 10:10:30 +0100 | [diff] [blame] | 60 | class VPNService; |
| 61 | typedef scoped_refptr<const VPNService> VPNServiceConstRefPtr; |
| 62 | typedef scoped_refptr<VPNService> VPNServiceRefPtr; |
| 63 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 64 | class WiFiService; |
| 65 | typedef scoped_refptr<const WiFiService> WiFiServiceConstRefPtr; |
| 66 | typedef scoped_refptr<WiFiService> WiFiServiceRefPtr; |
| 67 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 68 | class WiMaxService; |
| 69 | typedef scoped_refptr<const WiMaxService> WiMaxServiceConstRefPtr; |
| 70 | typedef scoped_refptr<WiMaxService> WiMaxServiceRefPtr; |
| 71 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 72 | class IPConfig; |
| 73 | typedef scoped_refptr<IPConfig> IPConfigRefPtr; |
| 74 | |
| 75 | class DHCPConfig; |
| 76 | typedef scoped_refptr<DHCPConfig> DHCPConfigRefPtr; |
| 77 | |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 78 | class Profile; |
mukesh agrawal | bebf1b8 | 2013-04-23 15:06:33 -0700 | [diff] [blame] | 79 | typedef scoped_refptr<const Profile> ProfileConstRefPtr; |
Chris Masone | 7aa5f90 | 2011-07-11 11:13:35 -0700 | [diff] [blame] | 80 | typedef scoped_refptr<Profile> ProfileRefPtr; |
| 81 | |
Paul Stewart | dd60e45 | 2011-08-08 11:38:36 -0700 | [diff] [blame] | 82 | class Connection; |
| 83 | typedef scoped_refptr<Connection> ConnectionRefPtr; |
| 84 | |
Chris Masone | 2b10554 | 2011-06-22 10:58:09 -0700 | [diff] [blame] | 85 | } // namespace shill |
| 86 | |
| 87 | #endif // SHILL_REFPTR_TYPES_ |