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

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: 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..c95ba3ac3fd4462acc6c0c46c6084c6d485d854c 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 is occured.
+ virtual void OnDriveSyncError(DriveSyncErrorType type) {}
};
} // namespace file_system

Powered by Google App Engine
This is Rietveld 408576698