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

Side by Side Diff: mojo/public/cpp/bindings/sync_dispatcher.h

Issue 218613010: Mojo: Move mojo/public/bindings/*.h to mojo/public/cpp/bindings/*.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/public/cpp/bindings/remote_ptr.h ('k') | mojo/public/cpp/bindings/type_converter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_PUBLIC_BINDINGS_SYNC_DISPATCHER_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_SYNC_DISPATCHER_H_
6 #define MOJO_PUBLIC_BINDINGS_SYNC_DISPATCHER_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_SYNC_DISPATCHER_H_
7 7
8 #include "mojo/public/cpp/system/core.h" 8 #include "mojo/public/cpp/system/core.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 class MessageReceiver; 12 class MessageReceiver;
13 13
14 // Waits for one message to arrive on the message pipe, and dispatch it to the 14 // Waits for one message to arrive on the message pipe, and dispatch it to the
15 // receiver. Returns true on success, false on failure. 15 // receiver. Returns true on success, false on failure.
16 bool WaitForMessageAndDispatch(MessagePipeHandle handle, 16 bool WaitForMessageAndDispatch(MessagePipeHandle handle,
(...skipping 10 matching lines...) Expand all
27 return WaitForMessageAndDispatch(message_pipe_.get(), &stub_); 27 return WaitForMessageAndDispatch(message_pipe_.get(), &stub_);
28 } 28 }
29 29
30 private: 30 private:
31 ScopedMessagePipeHandle message_pipe_; 31 ScopedMessagePipeHandle message_pipe_;
32 typename S::_Stub stub_; 32 typename S::_Stub stub_;
33 }; 33 };
34 34
35 } // namespace mojo 35 } // namespace mojo
36 36
37 #endif // MOJO_PUBLIC_BINDINGS_SYNC_DISPATCHER_H_ 37 #endif // MOJO_PUBLIC_CPP_BINDINGS_SYNC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/remote_ptr.h ('k') | mojo/public/cpp/bindings/type_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698