Index: chrome/browser/extensions/api/api_resource.h |
diff --git a/chrome/browser/extensions/api/api_resource.h b/chrome/browser/extensions/api/api_resource.h |
index 0507377ac64bd432303885d980b96f63670d616f..13361dc6cf5754c045726e4c95e2719ecd8e478f 100644 |
--- a/chrome/browser/extensions/api/api_resource.h |
+++ b/chrome/browser/extensions/api/api_resource.h |
@@ -11,8 +11,6 @@ |
namespace extensions { |
-class ApiResourceEventNotifier; |
- |
// An ApiResource represents something that an extension API manages, such as a |
// socket or a serial-port connection. Typically, an ApiResourceManager will |
// control the lifetime of all ApiResources of a specific derived type. |
@@ -25,20 +23,12 @@ class ApiResource { |
} |
protected: |
- ApiResource(const std::string& owner_extension_id, |
- ApiResourceEventNotifier* event_notifier); |
+ explicit ApiResource(const std::string& owner_extension_id); |
private: |
- // The extension that owns this resource. This could be derived from |
- // event_notifier, but that's a little too cute; to make future code |
- // maintenance easier, we'll require callers to explicitly specify the owner, |
- // and for now we'll assert that the owner implied by the event_notifier is |
- // consistent with the explicit one. |
+ // The extension that owns this resource. |
const std::string& owner_extension_id_; |
- // The object that lets this resource report events to the owner application. |
- scoped_refptr<ApiResourceEventNotifier> event_notifier_; |
- |
DISALLOW_COPY_AND_ASSIGN(ApiResource); |
}; |