OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_JNI_DISPLAY_UPDATER_FACTORY_H_ | 5 #ifndef REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ |
6 #define REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ | 6 #define REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 namespace protocol { | 14 namespace protocol { |
15 | |
16 class CursorShapeStub; | 15 class CursorShapeStub; |
17 | 16 class VideoRenderer; |
18 } // namespace protocol | 17 } // namespace protocol |
19 | 18 |
20 class JniVideoRenderer; | |
21 | |
22 // Interface for creating objects to update image (desktop frame or cursor | 19 // Interface for creating objects to update image (desktop frame or cursor |
23 // shape) to display. Factory functions can be called on any thread but the | 20 // shape) to display. Factory functions can be called on any thread but the |
24 // returned object should be used on the network thread. | 21 // returned object should be used on the network thread. |
25 class DisplayUpdaterFactory { | 22 class DisplayUpdaterFactory { |
26 public: | 23 public: |
27 virtual ~DisplayUpdaterFactory() {} | 24 virtual ~DisplayUpdaterFactory() {} |
28 | 25 |
29 virtual std::unique_ptr<protocol::CursorShapeStub> | 26 virtual std::unique_ptr<protocol::CursorShapeStub> |
30 CreateCursorShapeStub() = 0; | 27 CreateCursorShapeStub() = 0; |
31 virtual std::unique_ptr<JniVideoRenderer> CreateVideoRenderer() = 0; | 28 virtual std::unique_ptr<protocol::VideoRenderer> CreateVideoRenderer() = 0; |
32 | 29 |
33 protected: | 30 protected: |
34 DisplayUpdaterFactory() {} | 31 DisplayUpdaterFactory() {} |
35 | 32 |
36 private: | 33 private: |
37 DISALLOW_COPY_AND_ASSIGN(DisplayUpdaterFactory); | 34 DISALLOW_COPY_AND_ASSIGN(DisplayUpdaterFactory); |
38 }; | 35 }; |
39 | 36 |
40 } // namespace remoting | 37 } // namespace remoting |
41 | 38 |
42 #endif // REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ | 39 #endif // REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ |
OLD | NEW |