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