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

Unified Diff: base/files/file_path_watcher.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/files/OWNERS ('k') | base/files/file_path_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_path_watcher.h
diff --git a/content/common/file_path_watcher/file_path_watcher.h b/base/files/file_path_watcher.h
similarity index 95%
rename from content/common/file_path_watcher/file_path_watcher.h
rename to base/files/file_path_watcher.h
index 094b04f98e15bb6a580dbf450f8dc92b2910d333..2cf95c6b63d2b758d62ab912d90a03252bfa0be8 100644
--- a/content/common/file_path_watcher/file_path_watcher.h
+++ b/base/files/file_path_watcher.h
@@ -4,8 +4,8 @@
// This module provides a way to monitor a file or directory for changes.
-#ifndef CONTENT_COMMON_FILE_PATH_WATCHER_FILE_PATH_WATCHER_H_
-#define CONTENT_COMMON_FILE_PATH_WATCHER_FILE_PATH_WATCHER_H_
+#ifndef BASE_FILES_FILE_PATH_WATCHER_H_
+#define BASE_FILES_FILE_PATH_WATCHER_H_
#pragma once
#include "base/basictypes.h"
@@ -13,6 +13,9 @@
#include "base/memory/ref_counted.h"
#include "base/message_loop_proxy.h"
+namespace base {
+namespace files {
+
// This class lets you register interest in changes on a FilePath.
// The delegate will get called whenever the file or directory referenced by the
// FilePath is changed, including created or deleted. Due to limitations in the
@@ -119,4 +122,7 @@ class FilePathWatcher {
DISALLOW_COPY_AND_ASSIGN(FilePathWatcher);
};
-#endif // CONTENT_COMMON_FILE_PATH_WATCHER_FILE_PATH_WATCHER_H_
+} // namespace files
+} // namespace base
+
+#endif // BASE_FILES_FILE_PATH_WATCHER_H_
« no previous file with comments | « base/files/OWNERS ('k') | base/files/file_path_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698