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

Unified Diff: mojo/public/cpp/system/platform_handle.h

Issue 2358133002: Turn //mojo/public/cpp/bindings and //mojo/public/cpp/system into components (Closed)
Patch Set: Windows build, warning free Created 4 years, 3 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/public/cpp/system/platform_handle.h
diff --git a/mojo/public/cpp/system/platform_handle.h b/mojo/public/cpp/system/platform_handle.h
index 2a8173427b8c27a372f2131e609dbe424c0b2554..0b30ec8a14f63139859dea29ccdae77f76703f9c 100644
--- a/mojo/public/cpp/system/platform_handle.h
+++ b/mojo/public/cpp/system/platform_handle.h
@@ -22,6 +22,7 @@
#include "mojo/public/c/system/platform_handle.h"
#include "mojo/public/cpp/system/buffer.h"
#include "mojo/public/cpp/system/handle.h"
+#include "mojo/public/cpp/system/system_export.h"
#if defined(OS_WIN)
#include <windows.h>
@@ -50,10 +51,12 @@ const MojoPlatformHandleType kPlatformSharedBufferHandleType =
#endif // defined(OS_POSIX)
// Wraps a PlatformFile as a Mojo handle. Takes ownership of the file object.
-ScopedHandle WrapPlatformFile(base::PlatformFile platform_file);
+ScopedHandle MOJO_CPP_SYSTEM_EXPORT
+WrapPlatformFile(base::PlatformFile platform_file);
// Unwraps a PlatformFile from a Mojo handle.
-MojoResult UnwrapPlatformFile(ScopedHandle handle, base::PlatformFile* file);
+MojoResult MOJO_CPP_SYSTEM_EXPORT UnwrapPlatformFile(ScopedHandle handle,
+ base::PlatformFile* file);
// Wraps a base::SharedMemoryHandle as a Mojo handle. Takes ownership of the
// SharedMemoryHandle. Note that |read_only| is only an indicator of whether
@@ -66,10 +69,11 @@ ScopedSharedBufferHandle WrapSharedMemoryHandle(
// Unwraps a base::SharedMemoryHandle from a Mojo handle. The caller assumes
// responsibility for the lifetime of the SharedMemoryHandle.
-MojoResult UnwrapSharedMemoryHandle(ScopedSharedBufferHandle handle,
- base::SharedMemoryHandle* memory_handle,
- size_t* size,
- bool* read_only);
+MojoResult MOJO_CPP_SYSTEM_EXPORT
+UnwrapSharedMemoryHandle(ScopedSharedBufferHandle handle,
+ base::SharedMemoryHandle* memory_handle,
+ size_t* size,
+ bool* read_only);
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698