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

Side by Side Diff: base/directory_watcher_stub.cc

Issue 115229: Add support for almost-recursive watches in Linux DirectoryWatcher (Closed)
Patch Set: fix NULL file_thread scenario Created 11 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 Linux systems which don't have the inotify headers, and 5 // This file exists for Linux systems which don't have the inotify headers, and
6 // thus cannot build directory_watcher_inotify.cc 6 // thus cannot build directory_watcher_inotify.cc
7 7
8 #include "base/directory_watcher.h" 8 #include "base/directory_watcher.h"
9 9
10 class DirectoryWatcherImpl : public DirectoryWatcher::PlatformDelegate { 10 class DirectoryWatcherImpl : public DirectoryWatcher::PlatformDelegate {
11 public: 11 public:
12 virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate, 12 virtual bool Watch(const FilePath& path, DirectoryWatcher::Delegate* delegate,
13 bool recursive) { 13 MessageLoop* backend_loop, bool recursive) {
14 return false; 14 return false;
15 } 15 }
16 }; 16 };
17 17
18 DirectoryWatcher::DirectoryWatcher() { 18 DirectoryWatcher::DirectoryWatcher() {
19 impl_ = new DirectoryWatcherImpl(); 19 impl_ = new DirectoryWatcherImpl();
20 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698