OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UTILITY_BINDINGS_SUPPORT_IMPL_H_ | 5 #ifndef MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_ |
6 #define MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_ | 6 #define MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_ |
7 | 7 |
8 #include "mojo/public/bindings/lib/bindings_support.h" | 8 #include "mojo/public/bindings/lib/bindings_support.h" |
9 #include "mojo/public/system/macros.h" | 9 #include "mojo/public/system/macros.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace utility { | |
13 namespace internal { | 12 namespace internal { |
14 | 13 |
15 // BindingsSupport implementation that uses RunLoop. Before using this you must | 14 // BindingsSupport implementation that uses RunLoop. Before using this you must |
16 // have created a RunLoop on the current thread. | 15 // have created a RunLoop on the current thread. |
17 // You shouldn't create this directly, instead use Environment. | 16 // You shouldn't create this directly, instead use Environment. |
18 class BindingsSupportImpl : public BindingsSupport { | 17 class BindingsSupportImpl : public BindingsSupport { |
19 public: | 18 public: |
20 BindingsSupportImpl(); | 19 BindingsSupportImpl(); |
21 virtual ~BindingsSupportImpl(); | 20 virtual ~BindingsSupportImpl(); |
22 | 21 |
(...skipping 10 matching lines...) Expand all Loading... |
33 virtual AsyncWaitID AsyncWait(const Handle& handle, | 32 virtual AsyncWaitID AsyncWait(const Handle& handle, |
34 MojoWaitFlags flags, | 33 MojoWaitFlags flags, |
35 AsyncWaitCallback* callback) MOJO_OVERRIDE; | 34 AsyncWaitCallback* callback) MOJO_OVERRIDE; |
36 virtual void CancelWait(AsyncWaitID async_wait_id) MOJO_OVERRIDE; | 35 virtual void CancelWait(AsyncWaitID async_wait_id) MOJO_OVERRIDE; |
37 | 36 |
38 private: | 37 private: |
39 MOJO_DISALLOW_COPY_AND_ASSIGN(BindingsSupportImpl); | 38 MOJO_DISALLOW_COPY_AND_ASSIGN(BindingsSupportImpl); |
40 }; | 39 }; |
41 | 40 |
42 } // namespace internal | 41 } // namespace internal |
43 } // namespace utility | |
44 } // namespace mojo | 42 } // namespace mojo |
45 | 43 |
46 #endif // MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_ | 44 #endif // MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_ |
OLD | NEW |