Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: remoting/protocol/fake_video_renderer.h

Issue 1559933003: Pass VideoRenderer interface to ConnectionToHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_frame_consumer
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
5 #ifndef REMOTING_PROTOCOL_FAKE_VIDEO_RENDERER_H_
6 #define REMOTING_PROTOCOL_FAKE_VIDEO_RENDERER_H_
7
8 #include <list>
9
10 #include "remoting/protocol/video_renderer.h"
11 #include "remoting/protocol/video_stub.h"
12
13 namespace remoting {
14 namespace protocol {
15
16 class FakeVideoStub : public VideoStub {
17 public:
18 FakeVideoStub();
19 ~FakeVideoStub() override;
20
21 // VideoStub interface.
22 void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
23 const base::Closure& done) override;
24 private:
25 std::list<scoped_ptr<VideoPacket>> received_packets_;
26 };
27
28 class FakeVideoRenderer : public VideoRenderer {
29 public:
30 FakeVideoRenderer();
31 ~FakeVideoRenderer() override;
32
33 // VideoRenderer interface.
34 void OnSessionConfig(const SessionConfig& config) override;
35 FakeVideoStub* GetVideoStub() override;
36
37 private:
38 FakeVideoStub video_stub_;
39 };
40
41 } // namespace protocol
42 } // namespace remoting
43
44 #endif // REMOTING_PROTOCOL_FAKE_VIDEO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698