shill: A couple of naming cleanups

Rename shill_event.* -> event_dispatcher.*.  This is more
consistent with correct style.  Also rename IOInputHandler ->
InputHandler.

BUG=None
TEST=Rerun unit tests

Change-Id: I13d56b857c85b32ba1418e894de68afc5a23f00d
Reviewed-on: http://gerrit.chromium.org/gerrit/10326
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/event_dispatcher.h b/event_dispatcher.h
new file mode 100644
index 0000000..d540fbd
--- /dev/null
+++ b/event_dispatcher.h
@@ -0,0 +1,56 @@
+// Copyright (c) 2011 The Chromium OS 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 SHILL_EVENT_DISPATCHER_
+#define SHILL_EVENT_DISPATCHER_
+
+#include <base/basictypes.h>
+#include <base/callback_old.h>
+#include <base/memory/ref_counted.h>
+#include <base/memory/scoped_ptr.h>
+#include <base/message_loop.h>
+
+namespace base {
+class MessageLoopProxy;
+}  // namespace base
+
+class Task;
+
+namespace shill {
+
+class InputData;
+class IOHandler;
+
+// This is the main event dispatcher.  It contains a central instance, and is
+// the entity responsible for dispatching events out of all queues to their
+// listeners during the idle loop.
+class EventDispatcher {
+ public:
+  EventDispatcher();
+  virtual ~EventDispatcher();
+
+  void DispatchForever();
+
+  // Processes all pending events that can run and returns.
+  void DispatchPendingEvents();
+
+  // These are thin wrappers around calls of the same name in
+  // <base/message_loop_proxy.h>
+  bool PostTask(Task *task);
+  bool PostDelayedTask(Task *task, int64 delay_ms);
+
+  virtual IOHandler *CreateInputHandler(
+      int fd,
+      Callback1<InputData *>::Type *callback);
+
+ private:
+  scoped_ptr<MessageLoop> dont_use_directly_;
+  scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+
+  DISALLOW_COPY_AND_ASSIGN(EventDispatcher);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_EVENT_DISPATCHER_