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

Side by Side Diff: base/files/file_path_watcher_stub.cc

Issue 10065037: RefCounted types should not have public destructors, base/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo fix Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/files/file_path_watcher_mac.cc ('k') | base/memory/ref_counted_memory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file exists for Unix systems which don't have the inotify headers, and 5 // This file exists for Unix systems which don't have the inotify headers, and
6 // thus cannot build file_watcher_inotify.cc 6 // thus cannot build file_watcher_inotify.cc
7 7
8 #include "base/files/file_path_watcher.h" 8 #include "base/files/file_path_watcher.h"
9 9
10 namespace base { 10 namespace base {
11 namespace files { 11 namespace files {
12 12
13 namespace { 13 namespace {
14 14
15 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { 15 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
16 public: 16 public:
17 virtual bool Watch(const FilePath& path, 17 virtual bool Watch(const FilePath& path,
18 FilePathWatcher::Delegate* delegate) OVERRIDE { 18 FilePathWatcher::Delegate* delegate) OVERRIDE {
19 return false; 19 return false;
20 } 20 }
21 21
22 virtual void Cancel() OVERRIDE {} 22 virtual void Cancel() OVERRIDE {}
23 23
24 virtual void CancelOnMessageLoopThread() OVERRIDE {} 24 virtual void CancelOnMessageLoopThread() OVERRIDE {}
25
26 protected:
27 virtual ~FilePathWatcherImpl() {}
25 }; 28 };
26 29
27 } // namespace 30 } // namespace
28 31
29 FilePathWatcher::FilePathWatcher() { 32 FilePathWatcher::FilePathWatcher() {
30 impl_ = new FilePathWatcherImpl(); 33 impl_ = new FilePathWatcherImpl();
31 } 34 }
32 35
33 } // namespace files 36 } // namespace files
34 } // namespace base 37 } // namespace base
OLDNEW
« no previous file with comments | « base/files/file_path_watcher_mac.cc ('k') | base/memory/ref_counted_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698