Removed 'anonymous' from namespace, added whitespace in thread_restrictions.cc
[chromium-blink-merge.git] / remoting / codec / video_decoder_verbatim.h
blobcad36ca334f325aaa111cd74fc7698cce793cd2b
1 // Copyright (c) 2012 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.
5 #ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
6 #define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/codec/video_decoder.h"
11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
12 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
14 namespace remoting {
16 // Video decoder implementations that decodes video packet encoded by
17 // VideoEncoderVerbatim. It just copies data from incoming packets to the
18 // video frames.
19 class VideoDecoderVerbatim : public VideoDecoder {
20 public:
21 VideoDecoderVerbatim();
22 ~VideoDecoderVerbatim() override;
24 // VideoDecoder implementation.
25 bool DecodePacket(const VideoPacket& packet,
26 webrtc::DesktopFrame* frame) override;
28 private:
29 DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim);
32 } // namespace remoting
34 #endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_