[shill] Use ref-counted pointers more, break unneeded header deps

1) Replace more bare pointers with ref-counted pointers.
2) Move declarations of *RefPtr into a header file with fwd-declared classes
3) Make class headers include that, move inclusion of real headers to .cc files.

BUG=None
TEST=unit tests

Change-Id: I8208c82377c6dbefe6903561a503b8db63f063d6
Reviewed-on: http://gerrit.chromium.org/gerrit/3177
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
33 files changed
tree: 31da1860766c6cc4a5a972507a4559768d8fd524
  1. accessor_interface.h
  2. adaptor_interfaces.h
  3. cellular.cc
  4. cellular.h
  5. cellular_service.cc
  6. cellular_service.h
  7. cellular_unittest.cc
  8. control_interface.h
  9. dbus_adaptor.cc
  10. dbus_adaptor.h
  11. dbus_adaptor_unittest.cc
  12. dbus_control.cc
  13. dbus_control.h
  14. device.cc
  15. device.h
  16. device_dbus_adaptor.cc
  17. device_dbus_adaptor.h
  18. device_info.cc
  19. device_info.h
  20. device_info_unittest.cc
  21. device_stub.h
  22. device_unittest.cc
  23. dhcp_config.cc
  24. dhcp_config.h
  25. dhcp_config_unittest.cc
  26. dhcp_provider.cc
  27. dhcp_provider.h
  28. dhcp_provider_unittest.cc
  29. dhcp_proxy_interface.h
  30. dhcpcd.xml
  31. dhcpcd_proxy.cc
  32. dhcpcd_proxy.h
  33. endpoint.cc
  34. endpoint.h
  35. error.cc
  36. error.h
  37. ethernet.cc
  38. ethernet.h
  39. ethernet_service.cc
  40. ethernet_service.h
  41. flimflam-device.xml
  42. flimflam-ipconfig.xml
  43. flimflam-manager.xml
  44. flimflam-profile.xml
  45. flimflam-service.xml
  46. glib.cc
  47. glib.h
  48. glib_io_handler.cc
  49. glib_io_handler.h
  50. inherit-review-settings-ok
  51. io_handler.h
  52. ipconfig.cc
  53. ipconfig.h
  54. ipconfig_unittest.cc
  55. key_file_store.cc
  56. key_file_store.h
  57. key_file_store_unittest.cc
  58. Makefile
  59. manager.cc
  60. manager.h
  61. manager_dbus_adaptor.cc
  62. manager_dbus_adaptor.h
  63. manager_unittest.cc
  64. mock_adaptors.h
  65. mock_control.cc
  66. mock_control.h
  67. mock_device.cc
  68. mock_device.h
  69. mock_dhcp_proxy.h
  70. mock_glib.h
  71. mock_property_store.h
  72. mock_service.cc
  73. mock_service.h
  74. property_accessor.h
  75. property_store.cc
  76. property_store.h
  77. property_store_unittest.cc
  78. property_store_unittest.h
  79. refptr_types.h
  80. rtnl_handler.cc
  81. rtnl_handler.h
  82. rtnl_listener.cc
  83. rtnl_listener.h
  84. service.cc
  85. service.h
  86. service_dbus_adaptor.cc
  87. service_dbus_adaptor.h
  88. service_unittest.cc
  89. shill.conf
  90. shill_config.cc
  91. shill_config.h
  92. shill_daemon.cc
  93. shill_daemon.h
  94. shill_event.cc
  95. shill_event.h
  96. shill_main.cc
  97. shill_unittest.cc
  98. store_interface.h
  99. supplicant-bss.xml
  100. supplicant-interface.xml
  101. supplicant-network.xml
  102. supplicant-process.xml
  103. testrunner.cc
  104. WATCHLISTS
  105. wifi.cc
  106. wifi.h
  107. wifi_endpoint.cc
  108. wifi_endpoint.h
  109. wifi_service.cc
  110. wifi_service.h
  111. wifi_unittest.cc