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

Unified Diff: content/public/common/resource_response.h

Issue 10416003: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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: content/public/common/resource_response.h
diff --git a/content/public/common/resource_response.h b/content/public/common/resource_response.h
index 9a8e3a8a85e3afba4b03bff4d706a5d78accbe01..130eca84cea56fbe71b69d66f4f0f48ffafa5cbf 100644
--- a/content/public/common/resource_response.h
+++ b/content/public/common/resource_response.h
@@ -39,13 +39,10 @@ struct SyncLoadResult : ResourceResponseHead {
};
// Simple wrapper that refcounts ResourceResponseHead.
-struct CONTENT_EXPORT ResourceResponse
- : public NON_EXPORTED_BASE(ResourceResponseHead),
- public base::RefCounted<ResourceResponse> {
-
- private:
- friend class base::RefCounted<ResourceResponse>;
-
+// Inherited, rather than typedef'd, to allow forward declarations.
+class CONTENT_EXPORT ResourceResponse
jam 2012/05/21 15:18:43 please keep this as a struct. for the content api,
darin (slow to review) 2012/05/22 18:01:31 +1 This should be a struct. What problem was the
+ : public base::RefCountedData<ResourceResponseHead> {
+ protected:
~ResourceResponse() {}
};

Powered by Google App Engine
This is Rietveld 408576698