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

Unified Diff: blimp/net/input_message_converter.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/fake_pipe_manager.cc ('k') | blimp/net/input_message_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/input_message_converter.h
diff --git a/blimp/net/input_message_converter.h b/blimp/net/input_message_converter.h
deleted file mode 100644
index 7c5827d586b77e659d4fa1a025db725afee1451d..0000000000000000000000000000000000000000
--- a/blimp/net/input_message_converter.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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_CONVERTER_H_
-#define BLIMP_NET_INPUT_MESSAGE_CONVERTER_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "blimp/common/proto/ime.pb.h"
-#include "blimp/net/blimp_net_export.h"
-#include "ui/base/ime/text_input_type.h"
-
-namespace blink {
-class WebGestureEvent;
-}
-
-namespace blimp {
-
-class InputMessage;
-
-// A generic class to provide conversion utilities for protos such as :
-// 1) Creating WebGestureEvents from a stream of InputMessage protos.
-// This class may be stateful to optimize the size of the serialized
-// transmission
-// data. See InputMessageConverter for the deserialize code.
-// 2) Conversion between ui::TextInputType and ImeMessage proto.
-class BLIMP_NET_EXPORT InputMessageConverter {
- public:
- InputMessageConverter();
- ~InputMessageConverter();
-
- // Process an InputMessage and create a WebGestureEvent from it. This might
- // make use of state from previous messages.
- std::unique_ptr<blink::WebGestureEvent> ProcessMessage(
- const InputMessage& message);
-
- // Converts a ui::TextInputType to ImeMessage proto.
- static ImeMessage_InputType TextInputTypeToProto(ui::TextInputType type);
- static ui::TextInputType TextInputTypeFromProto(ImeMessage_InputType type);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(InputMessageConverter);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_INPUT_MESSAGE_CONVERTER_H_
« no previous file with comments | « blimp/net/fake_pipe_manager.cc ('k') | blimp/net/input_message_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698