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

Unified Diff: ipc/file_descriptor_set_posix.h

Issue 360042: First patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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: ipc/file_descriptor_set_posix.h
===================================================================
--- ipc/file_descriptor_set_posix.h (revision 30973)
+++ ipc/file_descriptor_set_posix.h (working copy)
@@ -19,7 +19,6 @@
class FileDescriptorSet : public base::RefCountedThreadSafe<FileDescriptorSet> {
public:
FileDescriptorSet();
- ~FileDescriptorSet();
// This is the maximum number of descriptors per message. We need to know this
// because the control message kernel interface has to be given a buffer which
@@ -90,6 +89,10 @@
// ---------------------------------------------------------------------------
private:
+ friend class base::RefCountedThreadSafe<FileDescriptorSet>;
+
+ ~FileDescriptorSet();
+
// A vector of descriptors and close flags. If this message is sent, then
// these descriptors are sent as control data. After sending, any descriptors
// with a true flag are closed. If this message has been received, then these

Powered by Google App Engine
This is Rietveld 408576698