shill: Remove the "resource" superclass

The "resource" superclass was meant at some point to be some
sort of crude mockup of a possible refcounting scheme.  Drop
this idea, and use base/ref_counted for Devices which will
likely need multiple entities referencing it.

BUG=chromium-os:12933
TEST=Rebuild

Change-Id: Id267049e881037422271f1611dcc8a5e90e9abac
Reviewed-on: http://gerrit.chromium.org/gerrit/723
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/device.h b/device.h
index 26a9e2e..53e2608 100644
--- a/device.h
+++ b/device.h
@@ -5,22 +5,25 @@
 #ifndef SHILL_DEVICE_
 #define SHILL_DEVICE_
 
-#include "shill/resource.h"
+#include <base/ref_counted.h>
+
 #include "shill/shill_event.h"
 
 namespace shill {
 
 // Device superclass.  Individual network interfaces types will inherit from
 // this class.
-class Device : public Resource {
+class Device : public base::RefCounted<Device> {
  public:
   // A constructor for the Device object
   explicit Device(ControlInterface *control_interface,
 		  EventDispatcher *dispatcher);
-  ~Device();
   void Start();
   void Stop();
 
+ protected:
+  ~Device();
+
  private:
   DeviceAdaptorInterface *adaptor_;
   bool running_;