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

Side by Side Diff: mojo/public/cpp/bindings/lib/router.h

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/lib/connector.cc ('k') | mojo/public/cpp/bindings/no_interface.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_CPP_BINDINGS_LIB_ROUTER_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "mojo/public/cpp/bindings/lib/connector.h" 10 #include "mojo/public/cpp/bindings/lib/connector.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 // Returns true if an error was encountered while reading from the pipe or 43 // Returns true if an error was encountered while reading from the pipe or
44 // waiting to read from the pipe. 44 // waiting to read from the pipe.
45 bool encountered_error() const { return connector_.encountered_error(); } 45 bool encountered_error() const { return connector_.encountered_error(); }
46 46
47 void CloseMessagePipe() { 47 void CloseMessagePipe() {
48 connector_.CloseMessagePipe(); 48 connector_.CloseMessagePipe();
49 } 49 }
50 50
51 ScopedMessagePipeHandle ReleaseMessagePipe() { 51 ScopedMessagePipeHandle PassMessagePipe() {
52 return connector_.ReleaseMessagePipe(); 52 return connector_.PassMessagePipe();
53 } 53 }
54 54
55 // MessageReceiver implementation: 55 // MessageReceiver implementation:
56 virtual bool Accept(Message* message) MOJO_OVERRIDE; 56 virtual bool Accept(Message* message) MOJO_OVERRIDE;
57 virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder) 57 virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder)
58 MOJO_OVERRIDE; 58 MOJO_OVERRIDE;
59 59
60 private: 60 private:
61 typedef std::map<uint64_t, MessageReceiver*> ResponderMap; 61 typedef std::map<uint64_t, MessageReceiver*> ResponderMap;
62 62
(...skipping 17 matching lines...) Expand all
80 SharedData<Router*> weak_self_; 80 SharedData<Router*> weak_self_;
81 MessageReceiverWithResponder* incoming_receiver_; 81 MessageReceiverWithResponder* incoming_receiver_;
82 ResponderMap responders_; 82 ResponderMap responders_;
83 uint64_t next_request_id_; 83 uint64_t next_request_id_;
84 }; 84 };
85 85
86 } // namespace internal 86 } // namespace internal
87 } // namespace mojo 87 } // namespace mojo
88 88
89 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_ 89 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ROUTER_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/connector.cc ('k') | mojo/public/cpp/bindings/no_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698