Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ | |
| 6 #define BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "blimp/net/blimp_net_export.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 class WebInputEvent; | |
| 13 } | |
| 14 | |
| 15 namespace blimp { | |
| 16 | |
| 17 class InputMessage; | |
| 18 | |
| 19 // Handles creating WebInputEvents from a stream of InputMessage protos. This | |
| 20 // class may be stateful to optimize the size of the serialized transmission | |
| 21 // data. See InputMessageProcessor for the deserialize code. | |
| 22 class BLIMP_NET_EXPORT InputMessageProcessor { | |
| 23 public: | |
| 24 InputMessageProcessor(); | |
| 25 virtual ~InputMessageProcessor(); | |
| 26 | |
| 27 // Process an InputMessage and create a WebInputEvent from it. This might | |
| 28 // make use of state from previous messages. | |
| 29 scoped_ptr<blink::WebInputEvent> ProcessMessage(const InputMessage& message); | |
| 30 }; | |
|
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.
| |
| 31 | |
| 32 } // namespace blimp | |
| 33 | |
| 34 #endif // BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ | |
| OLD | NEW |