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

Unified Diff: content_decryption_module.h

Issue 1950163002: DO NO SUBMIT: Add CDM_EXPORT to fix tests under ubsan (Closed) Base URL: https://chromium.googlesource.com/chromium/cdm.git@master
Patch Set: now it passes Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content_decryption_module.h
diff --git a/content_decryption_module.h b/content_decryption_module.h
index 28be27b88813893270777d2552c78bfaf976feb1..9046ad2a6d09c4dcac9a85b39b70a569f4cf9371 100644
--- a/content_decryption_module.h
+++ b/content_decryption_module.h
@@ -26,7 +26,7 @@ typedef __int64 int64_t;
#else // defined(WIN32)
-#if defined(CDM_IMPLEMENTATION)
+#if defined(CDM_IMPLEMENTATION) || defined(UNDEFINED_SANITIZER)
#define CDM_EXPORT __attribute__((visibility("default")))
#else
#define CDM_EXPORT
@@ -644,7 +644,7 @@ class ContentDecryptionModule_7 {
// provided in CreateCdmInstance() to allocate any Buffer that needs to
// be passed back to the caller. Implementations must call Buffer::Destroy()
// when a Buffer is created that will never be returned to the caller.
-class ContentDecryptionModule_8 {
+class CDM_EXPORT ContentDecryptionModule_8 {
public:
static const int kVersion = 8;
typedef Host_8 Host;
@@ -829,7 +829,7 @@ class ContentDecryptionModule_8 {
typedef ContentDecryptionModule_8 ContentDecryptionModule;
// Represents a buffer created by Allocator implementations.
-class Buffer {
+class CDM_EXPORT Buffer {
public:
// Destroys the buffer in the same context as it was created.
virtual void Destroy() = 0;
@@ -985,7 +985,7 @@ class Host_7 {
virtual ~Host_7() {}
};
-class Host_8 {
+class CDM_EXPORT Host_8 {
public:
static const int kVersion = 8;
@@ -1123,7 +1123,7 @@ class Host_8 {
};
// Represents a decrypted block that has not been decoded.
-class DecryptedBlock {
+class CDM_EXPORT DecryptedBlock {
public:
virtual void SetDecryptedBuffer(Buffer* buffer) = 0;
virtual Buffer* DecryptedBuffer() = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698