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

Side by Side 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: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CDM_CONTENT_DECRYPTION_MODULE_H_ 5 #ifndef CDM_CONTENT_DECRYPTION_MODULE_H_
6 #define CDM_CONTENT_DECRYPTION_MODULE_H_ 6 #define CDM_CONTENT_DECRYPTION_MODULE_H_
7 7
8 #if defined(_MSC_VER) 8 #if defined(_MSC_VER)
9 typedef unsigned char uint8_t; 9 typedef unsigned char uint8_t;
10 typedef unsigned int uint32_t; 10 typedef unsigned int uint32_t;
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 ContentDecryptionModule_7() {} 637 ContentDecryptionModule_7() {}
638 virtual ~ContentDecryptionModule_7() {} 638 virtual ~ContentDecryptionModule_7() {}
639 }; 639 };
640 640
641 // ContentDecryptionModule interface that all CDMs need to implement. 641 // ContentDecryptionModule interface that all CDMs need to implement.
642 // The interface is versioned for backward compatibility. 642 // The interface is versioned for backward compatibility.
643 // Note: ContentDecryptionModule implementations must use the allocator 643 // Note: ContentDecryptionModule implementations must use the allocator
644 // provided in CreateCdmInstance() to allocate any Buffer that needs to 644 // provided in CreateCdmInstance() to allocate any Buffer that needs to
645 // be passed back to the caller. Implementations must call Buffer::Destroy() 645 // be passed back to the caller. Implementations must call Buffer::Destroy()
646 // when a Buffer is created that will never be returned to the caller. 646 // when a Buffer is created that will never be returned to the caller.
647 class ContentDecryptionModule_8 { 647 class CDM_EXPORT ContentDecryptionModule_8 {
648 public: 648 public:
649 static const int kVersion = 8; 649 static const int kVersion = 8;
650 typedef Host_8 Host; 650 typedef Host_8 Host;
651 651
652 // Initializes the CDM instance, providing information about permitted 652 // Initializes the CDM instance, providing information about permitted
653 // functionalities. 653 // functionalities.
654 // If |allow_distinctive_identifier| is false, messages from the CDM, 654 // If |allow_distinctive_identifier| is false, messages from the CDM,
655 // such as message events, must not contain a Distinctive Identifier, 655 // such as message events, must not contain a Distinctive Identifier,
656 // even in an encrypted form. 656 // even in an encrypted form.
657 // If |allow_persistent_state| is false, the CDM must not attempt to 657 // If |allow_persistent_state| is false, the CDM must not attempt to
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 virtual AudioFormat Format() const = 0; 1193 virtual AudioFormat Format() const = 0;
1194 1194
1195 protected: 1195 protected:
1196 AudioFrames() {} 1196 AudioFrames() {}
1197 virtual ~AudioFrames() {} 1197 virtual ~AudioFrames() {}
1198 }; 1198 };
1199 1199
1200 } // namespace cdm 1200 } // namespace cdm
1201 1201
1202 #endif // CDM_CONTENT_DECRYPTION_MODULE_H_ 1202 #endif // CDM_CONTENT_DECRYPTION_MODULE_H_
OLDNEW
« 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