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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/public/gles2/gles2.h ('k') | mojo/public/system/core_private.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_PUBLIC_SYSTEM_CORE_PRIVATE_H_
6 #define MOJO_PUBLIC_SYSTEM_CORE_PRIVATE_H_
7
8 #include "mojo/public/system/core.h"
9
10 namespace mojo {
11
12 // Implementors of the core APIs can use this interface to install their
13 // implementation into the mojo_system dynamic library. Mojo clients should not
14 // call these functions directly.
15 class MOJO_SYSTEM_EXPORT Core {
16 public:
17 virtual ~Core();
18
19 static void Init(Core* core);
20
21 virtual MojoResult Close(MojoHandle handle) = 0;
22 virtual MojoResult Wait(MojoHandle handle,
23 MojoWaitFlags flags,
24 MojoDeadline deadline) = 0;
25 virtual MojoResult WaitMany(const MojoHandle* handles,
26 const MojoWaitFlags* flags,
27 uint32_t num_handles,
28 MojoDeadline deadline) = 0;
29 virtual MojoResult CreateMessagePipe(MojoHandle* handle_0,
30 MojoHandle* handle_1) = 0;
31 virtual MojoResult WriteMessage(MojoHandle handle,
32 const void* bytes,
33 uint32_t num_bytes,
34 const MojoHandle* handles,
35 uint32_t num_handles,
36 MojoWriteMessageFlags flags) = 0;
37 virtual MojoResult ReadMessage(MojoHandle handle,
38 void* bytes,
39 uint32_t* num_bytes,
40 MojoHandle* handles,
41 uint32_t* num_handles,
42 MojoReadMessageFlags flags) = 0;
43 virtual MojoTimeTicks GetTimeTicksNow() = 0;
44 };
45
46 } // namespace mojo
47
48 #endif // MOJO_PUBLIC_SYSTEM_CORE_PRIVATE_H_
OLDNEW
« 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