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

Unified Diff: net/base/directory_lister.h

Issue 368001: Second 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: net/base/directory_lister.h
===================================================================
--- net/base/directory_lister.h (revision 31079)
+++ net/base/directory_lister.h (working copy)
@@ -35,7 +35,6 @@
};
DirectoryLister(const FilePath& dir, DirectoryListerDelegate* delegate);
- ~DirectoryLister();
// Call this method to start the directory enumeration thread.
bool Start();
@@ -53,8 +52,11 @@
void ThreadMain();
private:
+ friend class base::RefCountedThreadSafe<DirectoryLister>;
friend class DirectoryDataEvent;
+ ~DirectoryLister();
+
void OnReceivedData(const file_util::FileEnumerator::FindInfo* data,
int count);
void OnDone(int error);

Powered by Google App Engine
This is Rietveld 408576698