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