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

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

Issue 6793020: Move FilePathWatcher to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ::operator<< Created 9 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/files/file_path_watcher_win.cc » ('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 "chrome/common/file_path_watcher/file_path_watcher.h" 8 #include "base/files/file_path_watcher.h"
9
10 namespace base {
11 namespace files {
12
13 namespace {
9 14
10 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate { 15 class FilePathWatcherImpl : public FilePathWatcher::PlatformDelegate {
11 public: 16 public:
12 virtual bool Watch(const FilePath& path, 17 virtual bool Watch(const FilePath& path,
13 FileWatcher::Delegate* delegate, 18 FileWatcher::Delegate* delegate,
14 base::MessageLoopProxy*) OVERRIDE { 19 base::MessageLoopProxy*) OVERRIDE {
15 return false; 20 return false;
16 } 21 }
17 }; 22 };
18 23
24 } // namespace
25
19 FilePathWatcher::FilePathWatcher() { 26 FilePathWatcher::FilePathWatcher() {
20 impl_ = new FilePathWatcherImpl(); 27 impl_ = new FilePathWatcherImpl();
21 } 28 }
29
30 } // namespace files
31 } // namespace base
OLDNEW
« no previous file with comments | « base/files/file_path_watcher_mac.cc ('k') | base/files/file_path_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698