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/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "blimp/net/blimp_net_export.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 class WebInputEvent; | |
| 14 } | |
| 15 | |
| 16 namespace blimp { | |
| 17 | |
| 18 class InputMessage; | |
| 19 | |
| 20 // Handles creating WebInputEvents from a stream of InputMessage protos. This | |
| 21 // class may be stateful to optimize the size of the serialized transmission | |
| 22 // data. See InputMessageProcessor for the deserialize code. | |
|
nyquist
2015/11/24 08:12:43
Did you mean to refer the other way? Maybe "See In
| |
| 23 class BLIMP_NET_EXPORT InputMessageProcessor { | |
| 24 public: | |
| 25 InputMessageProcessor(); | |
| 26 ~InputMessageProcessor(); | |
| 27 | |
| 28 // Process an InputMessage and create a WebInputEvent from it. This might | |
| 29 // make use of state from previous messages. | |
| 30 scoped_ptr<blink::WebInputEvent> ProcessMessage(const InputMessage& message); | |
| 31 | |
| 32 private: | |
| 33 DISALLOW_COPY_AND_ASSIGN(InputMessageProcessor); | |
| 34 }; | |
| 35 | |
| 36 } // namespace blimp | |
| 37 | |
| 38 #endif // BLIMP_NET_INPUT_MESSAGE_PROCESSOR_H_ | |
| OLD | NEW |