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

Unified Diff: base/directory_watcher.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: base/directory_watcher.h
===================================================================
--- base/directory_watcher.h (revision 30973)
+++ base/directory_watcher.h (working copy)
@@ -46,9 +46,13 @@
// Used internally to encapsulate different members on different platforms.
class PlatformDelegate : public base::RefCounted<PlatformDelegate> {
public:
- virtual ~PlatformDelegate() {}
virtual bool Watch(const FilePath& path, Delegate* delegate,
MessageLoop* backend_loop, bool recursive) = 0;
+
+ protected:
+ friend class base::RefCounted<PlatformDelegate>;
+
+ virtual ~PlatformDelegate() {}
};
private:
« no previous file with comments | « app/sql/connection.h ('k') | base/directory_watcher_win.cc » ('j') | base/field_trial.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698