OLD | NEW |
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_CLIENT_RECTANGLE_UPDATE_DECODER_H | 5 #ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H |
6 #define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H | 6 #define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H |
7 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
11 #include "remoting/base/decoder.h" // For UpdatedRects. | 11 #include "remoting/base/decoder.h" // For UpdatedRects |
12 | 12 |
13 class MessageLoop; | 13 class MessageLoop; |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 | 16 |
| 17 class Decoder; |
17 class FrameConsumer; | 18 class FrameConsumer; |
18 class RectangleFormat; | 19 class RectangleFormat; |
19 class RectangleUpdatePacket; | 20 class RectangleUpdatePacket; |
20 | 21 |
21 // TODO(ajwong): Re-examine this API, especially with regards to how error | 22 // TODO(ajwong): Re-examine this API, especially with regards to how error |
22 // conditions on each step are reported. Should they be CHECKs? Logs? Other? | 23 // conditions on each step are reported. Should they be CHECKs? Logs? Other? |
23 class RectangleUpdateDecoder { | 24 class RectangleUpdateDecoder { |
24 public: | 25 public: |
25 RectangleUpdateDecoder(MessageLoop* message_loop, | 26 RectangleUpdateDecoder(MessageLoop* message_loop, |
26 FrameConsumer* consumer); | 27 FrameConsumer* consumer); |
(...skipping 24 matching lines...) Expand all Loading... |
51 | 52 |
52 // Framebuffer for the decoder. | 53 // Framebuffer for the decoder. |
53 scoped_refptr<media::VideoFrame> frame_; | 54 scoped_refptr<media::VideoFrame> frame_; |
54 }; | 55 }; |
55 | 56 |
56 } // namespace remoting | 57 } // namespace remoting |
57 | 58 |
58 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::RectangleUpdateDecoder); | 59 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::RectangleUpdateDecoder); |
59 | 60 |
60 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H | 61 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H |
OLD | NEW |