Chromium Code Reviews| Index: mojo/public/bindings/lib/bindings_support.cc |
| diff --git a/mojo/public/bindings/lib/bindings_support.cc b/mojo/public/bindings/lib/bindings_support.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b8947a27d2f96448a726793f594336233010145f |
| --- /dev/null |
| +++ b/mojo/public/bindings/lib/bindings_support.cc |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "mojo/public/bindings/lib/bindings_support.h" |
| + |
| +#include <assert.h> |
| +#include <stdlib.h> |
|
viettrungluu
2013/11/05 22:45:29
stddef.h instead?
|
| + |
| +namespace mojo { |
| + |
| +namespace { |
| +BindingsSupport* g_bindings_support = NULL; |
| +} |
| + |
| +// static |
| +void BindingsSupport::Set(BindingsSupport* support) { |
| + g_bindings_support = support; |
| +} |
| + |
| +// static |
| +BindingsSupport* BindingsSupport::Get() { |
| + assert(g_bindings_support); |
| + return g_bindings_support; |
| +} |
| + |
| +} // namespace mojo |