diff options
Diffstat (limited to 'base/directory_watcher.h')
-rw-r--r-- | base/directory_watcher.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/directory_watcher.h b/base/directory_watcher.h index 2d5b901..207d6d2 100644 --- a/base/directory_watcher.h +++ b/base/directory_watcher.h @@ -46,9 +46,13 @@ class DirectoryWatcher { // 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: |