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

Unified Diff: chrome/browser/chromeos/drive/file_system/operation_observer.h

Issue 137903002: Files.app: Add a drive sync error event to the fileBrowserPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo. Created 6 years, 11 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/drive/file_system/operation_observer.h
diff --git a/chrome/browser/chromeos/drive/file_system/operation_observer.h b/chrome/browser/chromeos/drive/file_system/operation_observer.h
index 9643de81a12505a6b47428a345dc2ac15c4d065e..bb693cf522ecfa46514084a5cf788b202c7f7a8b 100644
--- a/chrome/browser/chromeos/drive/file_system/operation_observer.h
+++ b/chrome/browser/chromeos/drive/file_system/operation_observer.h
@@ -12,6 +12,12 @@ class FilePath;
namespace drive {
namespace file_system {
+// Error type of sync client.
+enum DriveSyncErrorType {
+ // Request to delete a file without permission.
+ DELETE_WITHOUT_PERMISSION
+};
+
// Passes notifications from Drive operations back to the file system.
class OperationObserver {
public:
@@ -27,6 +33,9 @@ class OperationObserver {
// Sent when metadata entry is updated and sync is needed.
virtual void OnEntryUpdatedByOperation(const std::string& local_id) {}
+
+ // Sent when a specific drive sync error occurred.
+ virtual void OnDriveSyncError(DriveSyncErrorType type) {}
};
} // namespace file_system
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.cc ('k') | chrome/browser/chromeos/drive/file_system/operation_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698