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

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

Issue 2283543002: Add support for dispatch contexts on BindingSet (Closed)
Patch Set: . Created 4 years, 3 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
« no previous file with comments | « mojo/public/cpp/bindings/binding_set.h ('k') | mojo/public/cpp/bindings/lib/binding_state.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BINDING_STATE_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 DISALLOW_COPY_AND_ASSIGN(BindingState); 124 DISALLOW_COPY_AND_ASSIGN(BindingState);
125 }; 125 };
126 126
127 // Base class used for templated binding primitives which may bind a pipe to 127 // Base class used for templated binding primitives which may bind a pipe to
128 // multiple interfaces. 128 // multiple interfaces.
129 class MultiplexedBindingState { 129 class MultiplexedBindingState {
130 public: 130 public:
131 MultiplexedBindingState(); 131 MultiplexedBindingState();
132 ~MultiplexedBindingState(); 132 ~MultiplexedBindingState();
133 133
134 void AddFilter(std::unique_ptr<MessageReceiver> filter);
135
134 bool HasAssociatedInterfaces() const; 136 bool HasAssociatedInterfaces() const;
135 137
136 void PauseIncomingMethodCallProcessing(); 138 void PauseIncomingMethodCallProcessing();
137 void ResumeIncomingMethodCallProcessing(); 139 void ResumeIncomingMethodCallProcessing();
138 140
139 bool WaitForIncomingMethodCall( 141 bool WaitForIncomingMethodCall(
140 MojoDeadline deadline = MOJO_DEADLINE_INDEFINITE); 142 MojoDeadline deadline = MOJO_DEADLINE_INDEFINITE);
141 143
142 void Close(); 144 void Close();
143 145
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 typename Interface::Stub_ stub_; 212 typename Interface::Stub_ stub_;
211 Interface* impl_; 213 Interface* impl_;
212 214
213 DISALLOW_COPY_AND_ASSIGN(BindingState); 215 DISALLOW_COPY_AND_ASSIGN(BindingState);
214 }; 216 };
215 217
216 } // namesapce internal 218 } // namesapce internal
217 } // namespace mojo 219 } // namespace mojo
218 220
219 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_ 221 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_BINDING_STATE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/binding_set.h ('k') | mojo/public/cpp/bindings/lib/binding_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698