drivefs_host_observer.h 929 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_COMPONENTS_DRIVEFS_DRIVEFS_HOST_OBSERVER_H_
  5. #define ASH_COMPONENTS_DRIVEFS_DRIVEFS_HOST_OBSERVER_H_
  6. #include <vector>
  7. namespace drivefs {
  8. namespace mojom {
  9. class DriveError;
  10. class FileChange;
  11. class SyncingStatus;
  12. } // namespace mojom
  13. class DriveFsHostObserver {
  14. public:
  15. virtual void OnUnmounted() {}
  16. virtual void OnSyncingStatusUpdate(const mojom::SyncingStatus& status) {}
  17. virtual void OnMirrorSyncingStatusUpdate(const mojom::SyncingStatus& status) {
  18. }
  19. virtual void OnFilesChanged(const std::vector<mojom::FileChange>& changes) {}
  20. virtual void OnError(const mojom::DriveError& error) {}
  21. protected:
  22. virtual ~DriveFsHostObserver() = default;
  23. };
  24. } // namespace drivefs
  25. #endif // ASH_COMPONENTS_DRIVEFS_DRIVEFS_HOST_OBSERVER_H_