// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_PROTOCOL_INPUT_EVENT_TIMESTAMPS_H_ #define REMOTING_PROTOCOL_INPUT_EVENT_TIMESTAMPS_H_ #include "base/memory/ref_counted.h" #include "base/time/time.h" namespace remoting::protocol { // Used on the host side to track timestamps for input events. struct InputEventTimestamps { … }; // InputEventTimestampsSource is used by VideoStream implementations to get // event timestamps that are sent back to the client as part of VideoStats // message. class InputEventTimestampsSource : public base::RefCountedThreadSafe<InputEventTimestampsSource> { … }; // Simple implementations of InputEventTimestampsSource that just stores the // value provided to OnEventReceived(). class InputEventTimestampsSourceImpl : public InputEventTimestampsSource { … }; } // namespace remoting::protocol #endif // REMOTING_PROTOCOL_INPUT_EVENT_TIMESTAMPS_H_