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

Unified Diff: mojo/system/core.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/system/core.cc
diff --git a/mojo/system/core.cc b/mojo/system/core.cc
index 5d4007b3db0e6310d84453119f66b018366a76aa..47d63f66580b003ade24e4101d825e44444942b7 100644
--- a/mojo/system/core.cc
+++ b/mojo/system/core.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/time/time.h"
#include "mojo/embedder/platform_shared_buffer.h"
+#include "mojo/embedder/simple_platform_support.h" // TODO(vtl): Remove this.
#include "mojo/public/c/system/macros.h"
#include "mojo/system/constants.h"
#include "mojo/system/data_pipe.h"
@@ -462,9 +463,12 @@ MojoResult Core::CreateSharedBuffer(
if (result != MOJO_RESULT_OK)
return result;
+ // TODO(vtl): |Core| should have a |PlatformSupport| passed in at creation
+ // time, and we should use that instead.
+ embedder::SimplePlatformSupport platform_support;
scoped_refptr<SharedBufferDispatcher> dispatcher;
- result =
- SharedBufferDispatcher::Create(validated_options, num_bytes, &dispatcher);
+ result = SharedBufferDispatcher::Create(
+ &platform_support, validated_options, num_bytes, &dispatcher);
if (result != MOJO_RESULT_OK) {
DCHECK(!dispatcher);
return result;

Powered by Google App Engine
This is Rietveld 408576698