Index: mojo/public/bindings/sync_dispatcher.h |
diff --git a/mojo/public/bindings/sync_dispatcher.h b/mojo/public/bindings/sync_dispatcher.h |
deleted file mode 100644 |
index 1117e9d0176391f7680b8d6dbcc9a02fa8759ee0..0000000000000000000000000000000000000000 |
--- a/mojo/public/bindings/sync_dispatcher.h |
+++ /dev/null |
@@ -1,37 +0,0 @@ |
-// Copyright 2014 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 MOJO_PUBLIC_BINDINGS_SYNC_DISPATCHER_H_ |
-#define MOJO_PUBLIC_BINDINGS_SYNC_DISPATCHER_H_ |
- |
-#include "mojo/public/cpp/system/core.h" |
- |
-namespace mojo { |
- |
-class MessageReceiver; |
- |
-// Waits for one message to arrive on the message pipe, and dispatch it to the |
-// receiver. Returns true on success, false on failure. |
-bool WaitForMessageAndDispatch(MessagePipeHandle handle, |
- mojo::MessageReceiver* receiver); |
- |
-template<typename S> class SyncDispatcher { |
- public: |
- SyncDispatcher(ScopedMessagePipeHandle message_pipe, S* sink) |
- : message_pipe_(message_pipe.Pass()), |
- stub_(sink) { |
- } |
- |
- bool WaitAndDispatchOneMessage() { |
- return WaitForMessageAndDispatch(message_pipe_.get(), &stub_); |
- } |
- |
- private: |
- ScopedMessagePipeHandle message_pipe_; |
- typename S::_Stub stub_; |
-}; |
- |
-} // namespace mojo |
- |
-#endif // MOJO_PUBLIC_BINDINGS_SYNC_DISPATCHER_H_ |