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

Unified Diff: mojo/public/bindings/lib/bindings_support.cc

Issue 54743003: Mojo: bindings connector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove errant line from mojo.gyp Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/bindings/lib/bindings_support.h ('k') | mojo/public/bindings/lib/connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8ea20131f3b7f39b152ccbc8e9b51528ff1ddaaa
--- /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 <stddef.h>
+
+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
« no previous file with comments | « mojo/public/bindings/lib/bindings_support.h ('k') | mojo/public/bindings/lib/connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698