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

Unified Diff: mojo/public/cpp/bindings/interface_ptr.h

Issue 2349293002: Mojo C++ bindings: always use MultiplexRouter with InterfacePtr/Binding. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/binding.h ('k') | mojo/public/cpp/bindings/lib/binding_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/interface_ptr.h
diff --git a/mojo/public/cpp/bindings/interface_ptr.h b/mojo/public/cpp/bindings/interface_ptr.h
index 29d362e0f6122377f6998b9c2ad64907f3ea938c..bd77ead04285c2173f1b69b574af76ccec8212eb 100644
--- a/mojo/public/cpp/bindings/interface_ptr.h
+++ b/mojo/public/cpp/bindings/interface_ptr.h
@@ -201,8 +201,7 @@ class InterfacePtr {
}
// DO NOT USE. Exposed only for internal use and for testing.
- internal::InterfacePtrState<Interface, Interface::PassesAssociatedKinds_>*
- internal_state() {
+ internal::InterfacePtrState<Interface, true>* internal_state() {
return &internal_state_;
}
@@ -210,9 +209,7 @@ class InterfacePtr {
// implicitly convertible to a real bool (which is dangerous).
private:
// TODO(dcheng): Use an explicit conversion operator.
- typedef internal::InterfacePtrState<Interface,
- Interface::PassesAssociatedKinds_>
- InterfacePtr::*Testable;
+ typedef internal::InterfacePtrState<Interface, true> InterfacePtr::*Testable;
public:
operator Testable() const {
@@ -228,8 +225,7 @@ class InterfacePtr {
template <typename T>
bool operator!=(const InterfacePtr<T>& other) const = delete;
- typedef internal::InterfacePtrState<Interface,
- Interface::PassesAssociatedKinds_> State;
+ typedef internal::InterfacePtrState<Interface, true> State;
mutable State internal_state_;
DISALLOW_COPY_AND_ASSIGN(InterfacePtr);
« no previous file with comments | « mojo/public/cpp/bindings/binding.h ('k') | mojo/public/cpp/bindings/lib/binding_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698