| 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
|
|
|