summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 01:55:48 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 01:55:48 +0000
commit7991a2336f3e5b975d5f31ffa24f129eb8bf32ad (patch)
tree52df10a63cfa787c42796566263fcb81c6517d4f /chrome/browser/notifications
parent6e82c3c6c3860a1005c96f4f6c138aa79a56d685 (diff)
downloadchromium_src-7991a2336f3e5b975d5f31ffa24f129eb8bf32ad.zip
chromium_src-7991a2336f3e5b975d5f31ffa24f129eb8bf32ad.tar.gz
chromium_src-7991a2336f3e5b975d5f31ffa24f129eb8bf32ad.tar.bz2
Seventh patch in making destructors of refcounted objects private.
BUG=26749 Review URL: http://codereview.chromium.org/371006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r--chrome/browser/notifications/notification_object_proxy.h4
-rw-r--r--chrome/browser/notifications/notifications_prefs_cache.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/notifications/notification_object_proxy.h b/chrome/browser/notifications/notification_object_proxy.h
index a5ad53b..ff71bc3 100644
--- a/chrome/browser/notifications/notification_object_proxy.h
+++ b/chrome/browser/notifications/notification_object_proxy.h
@@ -43,6 +43,10 @@ class NotificationObjectProxy :
}
private:
+ friend class base::RefCountedThreadSafe<NotificationObjectProxy>;
+
+ ~NotificationObjectProxy() {}
+
// Called on UI thread to schedule a message for sending.
void DeliverMessage(IPC::Message* message);
diff --git a/chrome/browser/notifications/notifications_prefs_cache.h b/chrome/browser/notifications/notifications_prefs_cache.h
index 8edbc36..58fb873 100644
--- a/chrome/browser/notifications/notifications_prefs_cache.h
+++ b/chrome/browser/notifications/notifications_prefs_cache.h
@@ -31,6 +31,10 @@ class NotificationsPrefsCache :
void CacheDeniedOrigin(const GURL& origin);
private:
+ friend class base::RefCountedThreadSafe<NotificationsPrefsCache>;
+
+ ~NotificationsPrefsCache() {}
+
// Helper functions which read preferences.
bool IsOriginAllowed(const GURL& origin);
bool IsOriginDenied(const GURL& origin);