Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: blimp/net/input_message_processor.h

Issue 1426993008: Serialize a subset of WebInputEvents to protobufs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-add fatal log. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « blimp/net/input_message_generator.cc ('k') | blimp/net/input_message_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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.
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_
OLDNEW
« no previous file with comments | « blimp/net/input_message_generator.cc ('k') | blimp/net/input_message_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698