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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/remove_watcher.h

Issue 674413002: [fsp] Rename ObserveEntry with AddWatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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: chrome/browser/chromeos/file_system_provider/operations/remove_watcher.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.h b/chrome/browser/chromeos/file_system_provider/operations/remove_watcher.h
similarity index 76%
rename from chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.h
rename to chrome/browser/chromeos/file_system_provider/operations/remove_watcher.h
index c1652e96162ea521f45b5e87ced6749cc6323b7d..d00a380fa92e3ba26ad69db1af28537ebc6cf4e0 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/remove_watcher.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_UNOBSERVE_ENTRY_H_
-#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_UNOBSERVE_ENTRY_H_
+#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_REMOVE_WATCHER_H_
+#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_REMOVE_WATCHER_H_
#include "base/files/file.h"
#include "base/memory/scoped_ptr.h"
@@ -25,15 +25,15 @@ namespace chromeos {
namespace file_system_provider {
namespace operations {
-// Unobserves an entry at |entry_path|.
-class UnobserveEntry : public Operation {
+// Removes a watcher at |entry_path| with the |recursive| mode.
+class RemoveWatcher : public Operation {
public:
- UnobserveEntry(extensions::EventRouter* event_router,
- const ProvidedFileSystemInfo& file_system_info,
- const base::FilePath& entry_path,
- bool recursive,
- const storage::AsyncFileUtil::StatusCallback& callback);
- virtual ~UnobserveEntry();
+ RemoveWatcher(extensions::EventRouter* event_router,
+ const ProvidedFileSystemInfo& file_system_info,
+ const base::FilePath& entry_path,
+ bool recursive,
+ const storage::AsyncFileUtil::StatusCallback& callback);
+ virtual ~RemoveWatcher();
// Operation overrides.
virtual bool Execute(int request_id) override;
@@ -49,11 +49,11 @@ class UnobserveEntry : public Operation {
bool recursive_;
const storage::AsyncFileUtil::StatusCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(UnobserveEntry);
+ DISALLOW_COPY_AND_ASSIGN(RemoveWatcher);
};
} // namespace operations
} // namespace file_system_provider
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_UNOBSERVE_ENTRY_H_
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_REMOVE_WATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698