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

Side by Side Diff: remoting/base/decoder.h

Issue 5270010: Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « remoting/base/codec_test.cc ('k') | remoting/base/decoder_row_based.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_BASE_DECODER_H_ 5 #ifndef REMOTING_BASE_DECODER_H_
6 #define REMOTING_BASE_DECODER_H_ 6 #define REMOTING_BASE_DECODER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/task.h"
10 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
11 #include "gfx/rect.h" 12 #include "gfx/rect.h"
12 #include "media/base/video_frame.h" 13 #include "media/base/video_frame.h"
13 #include "remoting/proto/video.pb.h" 14 #include "remoting/proto/video.pb.h"
14 15
15 class Task;
16
17 namespace remoting { 16 namespace remoting {
18 17
19 typedef std::vector<gfx::Rect> UpdatedRects; 18 typedef std::vector<gfx::Rect> UpdatedRects;
20 19
21 // Interface for a decoder that takes a stream of bytes from the network and 20 // Interface for a decoder that takes a stream of bytes from the network and
22 // outputs frames of data. 21 // outputs frames of data.
23 // 22 //
24 // TODO(ajwong): Beef up this documentation once the API stablizes. 23 // TODO(ajwong): Beef up this documentation once the API stablizes.
25 class Decoder { 24 class Decoder {
26 public: 25 public:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 57
59 // Returns true if decoder is ready to accept data via DecodePacket. 58 // Returns true if decoder is ready to accept data via DecodePacket.
60 virtual bool IsReadyForData() = 0; 59 virtual bool IsReadyForData() = 0;
61 60
62 virtual VideoPacketFormat::Encoding Encoding() = 0; 61 virtual VideoPacketFormat::Encoding Encoding() = 0;
63 }; 62 };
64 63
65 } // namespace remoting 64 } // namespace remoting
66 65
67 #endif // REMOTING_BASE_DECODER_H_ 66 #endif // REMOTING_BASE_DECODER_H_
OLDNEW
« no previous file with comments | « remoting/base/codec_test.cc ('k') | remoting/base/decoder_row_based.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698