Chromium Code Reviews| Index: blimp/net/input_message_processor.h |
| diff --git a/blimp/net/input_message_processor.h b/blimp/net/input_message_processor.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f04a3c2465bbaf6264ef82ab15d355a224b79ca4 |
| --- /dev/null |
| +++ b/blimp/net/input_message_processor.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ |
| +#define BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "blimp/net/blimp_net_export.h" |
| + |
| +namespace blink { |
| +class WebInputEvent; |
| +} |
| + |
| +namespace blimp { |
| + |
| +class InputMessage; |
| + |
| +// Handles creating WebInputEvents from a stream of InputMessage protos. This |
| +// class may be stateful to optimize the size of the serialized transmission |
| +// data. See InputMessageProcessor for the deserialize code. |
| +class BLIMP_NET_EXPORT InputMessageProcessor { |
| + public: |
| + InputMessageProcessor(); |
| + virtual ~InputMessageProcessor(); |
| + |
| + // Process an InputMessage and create a WebInputEvent from it. This might |
| + // make use of state from previous messages. |
| + scoped_ptr<blink::WebInputEvent> ProcessMessage(const InputMessage& message); |
| +}; |
|
Wez
2015/11/18 02:18:32
Same comments re virtual & DISALLOW_COPY_AND_ASSIG
David Trainor- moved to gerrit
2015/11/18 08:26:30
Done.
|
| + |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ |