Chris Masone | 2b10554 | 2011-06-22 10:58:09 -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 | #ifndef SHILL_REFPTR_TYPES_ |
| 6 | #define SHILL_REFPTR_TYPES_ |
| 7 | |
| 8 | #include <base/memory/ref_counted.h> |
| 9 | |
| 10 | namespace shill { |
| 11 | |
| 12 | // Device and derived classes. |
| 13 | class Device; |
| 14 | typedef scoped_refptr<const Device> DeviceConstRefPtr; |
| 15 | typedef scoped_refptr<Device> DeviceRefPtr; |
| 16 | |
| 17 | class Cellular; |
| 18 | typedef scoped_refptr<const Cellular> CellularConstRefPtr; |
| 19 | typedef scoped_refptr<Cellular> CellularRefPtr; |
| 20 | |
| 21 | class Ethernet; |
| 22 | typedef scoped_refptr<const Ethernet> EthernetConstRefPtr; |
| 23 | typedef scoped_refptr<Ethernet> EthernetRefPtr; |
| 24 | |
| 25 | class WiFi; |
| 26 | typedef scoped_refptr<const WiFi> WiFiConstRefPtr; |
| 27 | typedef scoped_refptr<WiFi> WiFiRefPtr; |
| 28 | |
| 29 | // Endpoint and derived classes. |
| 30 | class Endpoint; |
| 31 | typedef scoped_refptr<const Endpoint> EndpointConstRefPtr; |
| 32 | typedef scoped_refptr<Endpoint> EndpointRefPtr; |
| 33 | |
| 34 | class WiFiEndpoint; |
| 35 | typedef scoped_refptr<const WiFiEndpoint> WiFiEndpointConstRefPtr; |
| 36 | typedef scoped_refptr<WiFiEndpoint> WiFiEndpointRefPtr; |
| 37 | |
| 38 | // Service and derived classes. |
| 39 | class Service; |
| 40 | typedef scoped_refptr<const Service> ServiceConstRefPtr; |
| 41 | typedef scoped_refptr<Service> ServiceRefPtr; |
| 42 | |
| 43 | class CellularService; |
| 44 | typedef scoped_refptr<const CellularService> CellularServiceConstRefPtr; |
| 45 | typedef scoped_refptr<CellularService> CellularServiceRefPtr; |
| 46 | |
| 47 | class EthernetService; |
| 48 | typedef scoped_refptr<const EthernetService> EthernetServiceConstRefPtr; |
| 49 | typedef scoped_refptr<EthernetService> EthernetServiceRefPtr; |
| 50 | |
| 51 | class WiFiService; |
| 52 | typedef scoped_refptr<const WiFiService> WiFiServiceConstRefPtr; |
| 53 | typedef scoped_refptr<WiFiService> WiFiServiceRefPtr; |
| 54 | |
| 55 | // IPConfig and derived classes. |
| 56 | class IPConfig; |
| 57 | typedef scoped_refptr<IPConfig> IPConfigRefPtr; |
| 58 | |
| 59 | class DHCPConfig; |
| 60 | typedef scoped_refptr<DHCPConfig> DHCPConfigRefPtr; |
| 61 | |
| 62 | } // namespace shill |
| 63 | |
| 64 | #endif // SHILL_REFPTR_TYPES_ |