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

Side by Side Diff: base/file_watcher_stub.cc

Issue 661359: Add a FileWatcher to base/. (Closed)
Patch Set: 2s Created 10 years, 9 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
« no previous file with comments | « base/file_watcher_mac.cc ('k') | base/file_watcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // This file exists for Linux systems which don't have the inotify headers, and
6 // thus cannot build file_watcher_inotify.cc
7
8 #include "base/file_watcher.h"
9
10 class FileWatcherImpl : public FileWatcher::PlatformDelegate {
11 public:
12 virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate,
13 MessageLoop* backend_loop) {
14 return false;
15 }
16 };
17
18 FileWatcher::FileWatcher() {
19 impl_ = new FileWatcherImpl();
20 }
OLDNEW
« no previous file with comments | « base/file_watcher_mac.cc ('k') | base/file_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698