client_video_stats_dispatcher.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2016 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 REMOTING_PROTOCOL_CLIENT_VIDEO_STATS_DISPATCHER_H_
  5. #define REMOTING_PROTOCOL_CLIENT_VIDEO_STATS_DISPATCHER_H_
  6. #include "base/compiler_specific.h"
  7. #include "base/memory/raw_ptr.h"
  8. #include "base/memory/weak_ptr.h"
  9. #include "remoting/base/constants.h"
  10. #include "remoting/protocol/channel_dispatcher_base.h"
  11. #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
  12. namespace remoting {
  13. namespace protocol {
  14. class VideoStatsStub;
  15. class ClientVideoStatsDispatcher : public ChannelDispatcherBase {
  16. public:
  17. ClientVideoStatsDispatcher(const std::string& stream_name,
  18. VideoStatsStub* video_stats_stub);
  19. ClientVideoStatsDispatcher(const ClientVideoStatsDispatcher&) = delete;
  20. ClientVideoStatsDispatcher& operator=(const ClientVideoStatsDispatcher&) =
  21. delete;
  22. ~ClientVideoStatsDispatcher() override;
  23. private:
  24. void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override;
  25. raw_ptr<VideoStatsStub> video_stats_stub_;
  26. };
  27. } // namespace protocol
  28. } // namespace remoting
  29. #endif // REMOTING_PROTOCOL_CLIENT_VIDEO_STATS_DISPATCHER_H_