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

Unified Diff: mojo/public/system/core_private.h

Issue 106173003: Split mojo_system dylib into public and private (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win Created 7 years 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/gles2/gles2.h ('k') | mojo/public/system/core_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/system/core_private.h
diff --git a/mojo/public/system/core_private.h b/mojo/public/system/core_private.h
new file mode 100644
index 0000000000000000000000000000000000000000..adda16f2a9a4dbd6c191480f838c39cc91b750c7
--- /dev/null
+++ b/mojo/public/system/core_private.h
@@ -0,0 +1,48 @@
+// 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.
+
+#ifndef MOJO_PUBLIC_SYSTEM_CORE_PRIVATE_H_
+#define MOJO_PUBLIC_SYSTEM_CORE_PRIVATE_H_
+
+#include "mojo/public/system/core.h"
+
+namespace mojo {
+
+// Implementors of the core APIs can use this interface to install their
+// implementation into the mojo_system dynamic library. Mojo clients should not
+// call these functions directly.
+class MOJO_SYSTEM_EXPORT Core {
+ public:
+ virtual ~Core();
+
+ static void Init(Core* core);
+
+ virtual MojoResult Close(MojoHandle handle) = 0;
+ virtual MojoResult Wait(MojoHandle handle,
+ MojoWaitFlags flags,
+ MojoDeadline deadline) = 0;
+ virtual MojoResult WaitMany(const MojoHandle* handles,
+ const MojoWaitFlags* flags,
+ uint32_t num_handles,
+ MojoDeadline deadline) = 0;
+ virtual MojoResult CreateMessagePipe(MojoHandle* handle_0,
+ MojoHandle* handle_1) = 0;
+ virtual MojoResult WriteMessage(MojoHandle handle,
+ const void* bytes,
+ uint32_t num_bytes,
+ const MojoHandle* handles,
+ uint32_t num_handles,
+ MojoWriteMessageFlags flags) = 0;
+ virtual MojoResult ReadMessage(MojoHandle handle,
+ void* bytes,
+ uint32_t* num_bytes,
+ MojoHandle* handles,
+ uint32_t* num_handles,
+ MojoReadMessageFlags flags) = 0;
+ virtual MojoTimeTicks GetTimeTicksNow() = 0;
+};
+
+} // namespace mojo
+
+#endif // MOJO_PUBLIC_SYSTEM_CORE_PRIVATE_H_
« no previous file with comments | « mojo/public/gles2/gles2.h ('k') | mojo/public/system/core_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698