| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FRAME_CONSUMER_H_ | 5 #ifndef REMOTING_CLIENT_FRAME_CONSUMER_H_ |
| 6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ | 6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ |
| 7 | 7 |
| 8 #include "remoting/base/decoder.h" // For UpdatedRects | 8 #include "remoting/base/decoder.h" // For UpdatedRects |
| 9 | 9 |
| 10 class Task; | |
| 11 | |
| 12 namespace remoting { | 10 namespace remoting { |
| 13 | 11 |
| 14 class FrameConsumer { | 12 class FrameConsumer { |
| 15 public: | 13 public: |
| 16 FrameConsumer() {} | 14 FrameConsumer() {} |
| 17 virtual ~FrameConsumer() {} | 15 virtual ~FrameConsumer() {} |
| 18 | 16 |
| 19 // Request a frame be allocated from the FrameConsumer. | 17 // Request a frame be allocated from the FrameConsumer. |
| 20 // | 18 // |
| 21 // If a frame cannot be allocated to fit the format, and |size| | 19 // If a frame cannot be allocated to fit the format, and |size| |
| (...skipping 29 matching lines...) Expand all Loading... |
| 51 RectVector* rects, | 49 RectVector* rects, |
| 52 const base::Closure& done) = 0; | 50 const base::Closure& done) = 0; |
| 53 | 51 |
| 54 private: | 52 private: |
| 55 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); | 53 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); |
| 56 }; | 54 }; |
| 57 | 55 |
| 58 } // namespace remoting | 56 } // namespace remoting |
| 59 | 57 |
| 60 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ | 58 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ |
| OLD | NEW |