| OLD | NEW |
| 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_INTERFACE_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_H_ |
| 6 #define MOJO_PUBLIC_BINDINGS_INTERFACE_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <assert.h> | 8 #include <assert.h> |
| 9 | 9 |
| 10 #include "mojo/public/bindings/message.h" | 10 #include "mojo/public/cpp/bindings/message.h" |
| 11 #include "mojo/public/cpp/system/core.h" | 11 #include "mojo/public/cpp/system/core.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 | 14 |
| 15 | 15 |
| 16 // NoInterface is for use in cases when a non-existent or empty interface is | 16 // NoInterface is for use in cases when a non-existent or empty interface is |
| 17 // needed (e.g., when the Mojom "Peer" attribute is not present). | 17 // needed (e.g., when the Mojom "Peer" attribute is not present). |
| 18 | 18 |
| 19 class NoInterface; | 19 class NoInterface; |
| 20 | 20 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 typename Interface<S>::ScopedHandle handle_to_self; | 83 typename Interface<S>::ScopedHandle handle_to_self; |
| 84 typename Interface<P>::ScopedHandle handle_to_peer; | 84 typename Interface<P>::ScopedHandle handle_to_peer; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 // TODO(darin): Once we have the ability to use C++11 features, consider | 87 // TODO(darin): Once we have the ability to use C++11 features, consider |
| 88 // defining a template alias for ScopedInterfaceHandle<S>. | 88 // defining a template alias for ScopedInterfaceHandle<S>. |
| 89 | 89 |
| 90 } // namespace mojo | 90 } // namespace mojo |
| 91 | 91 |
| 92 #endif // MOJO_PUBLIC_BINDINGS_SCOPED_INTERFACE_H_ | 92 #endif // MOJO_PUBLIC_CPP_BINDINGS_INTERFACE_H_ |
| OLD | NEW |