1 // Copyright 2014 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 5 #ifndef REMOTING_CLIENT_VIDEO_RENDERER_H_ 6 #define REMOTING_CLIENT_VIDEO_RENDERER_H_ 7 8 #include "remoting/protocol/video_stub.h" 9 10 namespace remoting { 11 12 class ChromotingStats; 13 14 namespace protocol { 15 class SessionConfig; 16 } // namespace protocol; 17 18 // VideoRenderer is responsible for decoding and displaying incoming video 19 // stream. 20 class VideoRenderer : public protocol::VideoStub { 21 public: 22 // Initializes the processor with the information from the protocol config. 23 virtual void Initialize(const protocol::SessionConfig& config) = 0; 24 25 // Return the statistics recorded by this client. 26 virtual ChromotingStats* GetStats() = 0; 27 }; 28 29 } // namespace remoting 30 31 #endif // REMOTING_CLIENT_VIDEO_RENDERER_H_ 32