summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/input_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/input_stub.cc')
-rw-r--r--remoting/protocol/input_stub.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/remoting/protocol/input_stub.cc b/remoting/protocol/input_stub.cc
new file mode 100644
index 0000000..8bb1ffb
--- /dev/null
+++ b/remoting/protocol/input_stub.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2010 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.
+
+// Interface for a device that receives input events.
+// This interface handles event messages defined in event.proto.
+
+#include "remoting/protocol/input_stub.h"
+
+namespace remoting {
+namespace protocol {
+
+
+InputStub::InputStub() : authenticated_(false) {
+}
+
+InputStub::~InputStub() {
+}
+
+void InputStub::OnAuthenticated() {
+ authenticated_ = true;
+}
+
+bool InputStub::authenticated() {
+ return authenticated_;
+}
+
+} // namespace protocol
+} // namespace remoting