OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_COMMON_BINDINGS_SUPPORT_IMPL_H_ | |
6 #define MOJO_COMMON_BINDINGS_SUPPORT_IMPL_H_ | |
7 | |
8 #include "mojo/public/bindings/lib/bindings_support.h" | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "base/memory/ref_counted.h" | |
13 #include "mojo/common/mojo_common_export.h" | |
14 | |
15 namespace mojo { | |
16 namespace common { | |
17 | |
18 class MOJO_COMMON_EXPORT BindingsSupportImpl | |
19 : NON_EXPORTED_BASE(public BindingsSupport) { | |
20 public: | |
21 BindingsSupportImpl(); | |
22 virtual ~BindingsSupportImpl(); | |
23 | |
24 // BindingsSupport methods: | |
25 virtual Buffer* GetCurrentBuffer() OVERRIDE; | |
26 virtual Buffer* SetCurrentBuffer(Buffer* buf) OVERRIDE; | |
27 virtual AsyncWaitID AsyncWait(const Handle& handle, MojoWaitFlags flags, | |
28 AsyncWaitCallback* callback) OVERRIDE; | |
29 virtual void CancelWait(AsyncWaitID async_wait_id) OVERRIDE; | |
30 | |
31 private: | |
32 class Context; | |
33 scoped_refptr<Context> context_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(BindingsSupportImpl); | |
36 }; | |
37 | |
38 } // namespace common | |
39 } // namespace mojo | |
40 | |
41 #endif // MOJO_COMMON_BINDINGS_SUPPORT_IMPL_H_ | |
OLD | NEW |