Index: chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.h |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/abort.h b/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.h |
similarity index 75% |
copy from chrome/browser/chromeos/file_system_provider/operations/abort.h |
copy to chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.h |
index 13a024b744c61dcb5d3709f5ec4b5b596237294b..cb521f3151750764c9c6b727689de78b0823f6dd 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/abort.h |
+++ b/chrome/browser/chromeos/file_system_provider/operations/unobserve_entry.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_ABORT_H_ |
-#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_ABORT_H_ |
+#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_UNOBSERVE_ENTRY_H_ |
+#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_UNOBSERVE_ENTRY_H_ |
#include "base/files/file.h" |
#include "base/memory/scoped_ptr.h" |
@@ -25,14 +25,14 @@ namespace chromeos { |
namespace file_system_provider { |
namespace operations { |
-// Aborts an operation. Created per request. |
-class Abort : public Operation { |
+// Unobserves an entry at |entry_path|. |
+class UnobserveEntry : public Operation { |
public: |
- Abort(extensions::EventRouter* event_router, |
- const ProvidedFileSystemInfo& file_system_info, |
- int operation_request_id, |
- const storage::AsyncFileUtil::StatusCallback& callback); |
- virtual ~Abort(); |
+ UnobserveEntry(extensions::EventRouter* event_router, |
+ const ProvidedFileSystemInfo& file_system_info, |
+ const base::FilePath& entry_path, |
+ const storage::AsyncFileUtil::StatusCallback& callback); |
+ virtual ~UnobserveEntry(); |
// Operation overrides. |
virtual bool Execute(int request_id) override; |
@@ -44,14 +44,14 @@ class Abort : public Operation { |
base::File::Error error) override; |
private: |
- int operation_request_id_; |
+ const base::FilePath entry_path_; |
const storage::AsyncFileUtil::StatusCallback callback_; |
- DISALLOW_COPY_AND_ASSIGN(Abort); |
+ DISALLOW_COPY_AND_ASSIGN(UnobserveEntry); |
}; |
} // namespace operations |
} // namespace file_system_provider |
} // namespace chromeos |
-#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_ABORT_H_ |
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_UNOBSERVE_ENTRY_H_ |