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

Unified Diff: mojo/embedder/simple_platform_support.cc

Issue 475223002: Mojo: Add embedder::PlatformSupport and a simple implementation (and a bit of plumbing). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: mojo/embedder/simple_platform_support.cc
diff --git a/mojo/embedder/simple_platform_support.cc b/mojo/embedder/simple_platform_support.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1c7f82bcb5c4cb792addfd31c51000ea2540ded2
--- /dev/null
+++ b/mojo/embedder/simple_platform_support.cc
@@ -0,0 +1,25 @@
+// Copyright 2014 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/embedder/simple_platform_support.h"
+
+#include "mojo/embedder/simple_platform_shared_buffer.h"
+
+namespace mojo {
+namespace embedder {
+
+PlatformSharedBuffer* SimplePlatformSupport::CreateSharedBuffer(
+ size_t num_bytes) {
+ return SimplePlatformSharedBuffer::Create(num_bytes);
+}
+
+PlatformSharedBuffer* SimplePlatformSupport::CreateSharedBufferFromHandle(
+ size_t num_bytes,
+ ScopedPlatformHandle platform_handle) {
+ return SimplePlatformSharedBuffer::CreateFromPlatformHandle(
+ num_bytes, platform_handle.Pass());
+}
+
+} // namespace embedder
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698