screen_share_observer.h 906 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2013 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_SYSTEM_SCREEN_SECURITY_SCREEN_SHARE_OBSERVER_H_
  5. #define ASH_SYSTEM_SCREEN_SECURITY_SCREEN_SHARE_OBSERVER_H_
  6. #include <string>
  7. #include "base/callback.h"
  8. namespace ash {
  9. class ScreenShareObserver {
  10. public:
  11. // Called when screen share is started.
  12. // |stop_callback| must be a base::RepeatingCallback so that it can be passed
  13. // to all observers.
  14. virtual void OnScreenShareStart(const base::RepeatingClosure& stop_callback,
  15. const std::u16string& helper_name) = 0;
  16. // Called when screen share is stopped.
  17. virtual void OnScreenShareStop() = 0;
  18. protected:
  19. virtual ~ScreenShareObserver() {}
  20. };
  21. } // namespace ash
  22. #endif // ASH_SYSTEM_SCREEN_SECURITY_SCREEN_SHARE_OBSERVER_H_