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

Unified Diff: media/mojo/services/mojo_cdm_service.h

Issue 2070753002: media: Add unittest for MojoRenderer{Impl|Service} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix visibility :( Created 4 years, 6 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 | « media/mojo/clients/mojo_renderer_unittest.cc ('k') | media/mojo/services/mojo_cdm_service_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_cdm_service.h
diff --git a/media/mojo/services/mojo_cdm_service.h b/media/mojo/services/mojo_cdm_service.h
index 04a6f4d93a4cce9fc70f3f8d93048520f941c992..2e1aa78225c6c3dbb2a9c6a8dce6d8db165f936b 100644
--- a/media/mojo/services/mojo_cdm_service.h
+++ b/media/mojo/services/mojo_cdm_service.h
@@ -10,6 +10,7 @@
#include <memory>
#include "base/callback.h"
+#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
@@ -27,7 +28,8 @@ class CdmFactory;
// A mojom::ContentDecryptionModule implementation backed by a
// media::MediaKeys.
-class MojoCdmService : public mojom::ContentDecryptionModule {
+class MEDIA_MOJO_EXPORT MojoCdmService
+ : NON_EXPORTED_BASE(public mojom::ContentDecryptionModule) {
public:
// Get the CDM associated with |cdm_id|, which is unique per process.
// Can be called on any thread. The returned CDM is not guaranteed to be
@@ -37,7 +39,7 @@ class MojoCdmService : public mojom::ContentDecryptionModule {
// render frame the caller is associated with. In the future, we should move
// all out-of-process media players into the MojoMediaApplicaiton so that we
// can use MojoCdmServiceContext (per render frame) to get the CDM.
- static scoped_refptr<MediaKeys> MEDIA_MOJO_EXPORT LegacyGetCdm(int cdm_id);
+ static scoped_refptr<MediaKeys> LegacyGetCdm(int cdm_id);
// Constructs a MojoCdmService and strongly binds it to the |request|.
MojoCdmService(
« no previous file with comments | « media/mojo/clients/mojo_renderer_unittest.cc ('k') | media/mojo/services/mojo_cdm_service_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698