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

Side by Side Diff: mojo/common/bindings_support_impl.h

Issue 134253004: Mojo: AsyncWaiter and mojo/public/environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698