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

Unified Diff: mojo/public/bindings/lib/sync_dispatcher.cc

Issue 220243007: Mojo: Move mojo/public/bindings/lib to mojo/public/cpp/bindings/lib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « mojo/public/bindings/lib/shared_ptr.h ('k') | mojo/public/bindings/tests/array_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/lib/sync_dispatcher.cc
diff --git a/mojo/public/bindings/lib/sync_dispatcher.cc b/mojo/public/bindings/lib/sync_dispatcher.cc
deleted file mode 100644
index acb537eba398790c311e10bf50021913ccc8ab97..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/lib/sync_dispatcher.cc
+++ /dev/null
@@ -1,27 +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.
-
-#include "mojo/public/cpp/bindings/sync_dispatcher.h"
-
-#include <stdlib.h>
-
-#include "mojo/public/cpp/bindings/message.h"
-
-namespace mojo {
-
-bool WaitForMessageAndDispatch(MessagePipeHandle handle,
- MessageReceiver* receiver) {
- while (true) {
- bool result;
- MojoResult rv = ReadAndDispatchMessage(handle, receiver, &result);
- if (rv == MOJO_RESULT_OK)
- return result;
- if (rv == MOJO_RESULT_SHOULD_WAIT)
- rv = Wait(handle, MOJO_WAIT_FLAG_READABLE, MOJO_DEADLINE_INDEFINITE);
- if (rv != MOJO_RESULT_OK)
- return false;
- }
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/public/bindings/lib/shared_ptr.h ('k') | mojo/public/bindings/tests/array_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698