Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3283)

Unified Diff: chrome/browser/extensions/api/api_resource_event_notifier.h

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementations Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/api_resource_event_notifier.h
diff --git a/chrome/browser/extensions/api/api_resource_event_notifier.h b/chrome/browser/extensions/api/api_resource_event_notifier.h
index eb16a0118ed695ea241956a86b1e4766d2438528..a1afa36e25868e88eab47d9037c44b2110a6f3e4 100644
--- a/chrome/browser/extensions/api/api_resource_event_notifier.h
+++ b/chrome/browser/extensions/api/api_resource_event_notifier.h
@@ -48,7 +48,6 @@ class APIResourceEventNotifier
Profile* profile,
const std::string& src_extension_id, int src_id,
const GURL& src_url);
- virtual ~APIResourceEventNotifier();
virtual void OnConnectComplete(int result_code);
@@ -61,6 +60,11 @@ class APIResourceEventNotifier
APIResourceEventType event_type);
private:
+ friend class base::RefCountedThreadSafe<APIResourceEventNotifier>;
+ friend class MockAPIResourceEventNotifier;
+
+ virtual ~APIResourceEventNotifier();
+
void DispatchEvent(DictionaryValue* event);
void DispatchEventOnUIThread(DictionaryValue* event);
DictionaryValue* CreateAPIResourceEvent(APIResourceEventType event_type);

Powered by Google App Engine
This is Rietveld 408576698