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

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: move OWNERS file and rebase to pick up latest changes Created 9 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 side-by-side diff with in-line comments
Download patch
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..0c018d4ee4f0a1b83a2b48c0e68792b4612d8f8a 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,6 @@ 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_

Powered by Google App Engine
This is Rietveld 408576698