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

Unified Diff: content/common/child_process_sandbox_support_linux.h

Issue 8113027: Export some unix-specific content symbols (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more exports Created 9 years, 2 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: content/common/child_process_sandbox_support_linux.h
diff --git a/content/common/child_process_sandbox_support_linux.h b/content/common/child_process_sandbox_support_linux.h
index 4e7b4fb2e7e5cc68f9f74234fac78de013cce033..a7537c282bd11fe8d7fe705714a811a0a82dc8bf 100644
--- a/content/common/child_process_sandbox_support_linux.h
+++ b/content/common/child_process_sandbox_support_linux.h
@@ -10,6 +10,8 @@
#include <string>
+#include "content/common/content_export.h"
+
namespace WebKit {
struct WebFontRenderStyle;
}
@@ -34,14 +36,15 @@ void getRenderStyleForStrike(const char* family, int sizeAndStyle,
// Returns a file descriptor for a shared memory segment.
// The second argument is ignored because SHM segments are always
// mappable with PROT_EXEC on Linux.
-int MakeSharedMemorySegmentViaIPC(size_t length, bool executable);
+CONTENT_EXPORT int MakeSharedMemorySegmentViaIPC(size_t length,
+ bool executable);
// Return a read-only file descriptor to the font which best matches the given
// properties or -1 on failure.
// charset: specifies the language(s) that the font must cover. See
// render_sandbox_host_linux.cc for more information.
-int MatchFontWithFallback(const std::string& face, bool bold,
- bool italic, int charset);
+CONTENT_EXPORT int MatchFontWithFallback(const std::string& face, bool bold,
+ bool italic, int charset);
// GetFontTable loads a specified font table from an open SFNT file.
// fd: a file descriptor to the SFNT file. The position doesn't matter.
@@ -51,8 +54,8 @@ int MatchFontWithFallback(const std::string& face, bool bold,
// output_length: size of output, if it's not 0.
//
// returns: true on success.
-bool GetFontTable(int fd, uint32_t table, uint8_t* output,
- size_t* output_length);
+CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table, uint8_t* output,
+ size_t* output_length);
}; // namespace child_process_sandbox_support

Powered by Google App Engine
This is Rietveld 408576698