32 #include <sbIMediaItem.h>
34 #include <nsServiceManagerUtils.h>
45 "classinfo:classDescription",
46 "classinfo:contractID",
48 "classinfo:implementationLanguage",
70 sbRemoteIndexedMediaItem::sbRemoteIndexedMediaItem(
sbRemotePlayer* aRemotePlayer,
72 mRemotePlayer(aRemotePlayer),
73 mIndexedMediaItem(aIndexedMediaItem)
75 NS_ASSERTION(aRemotePlayer,
"Null remote player!");
76 NS_ASSERTION(aIndexedMediaItem,
"Null media item!");
85 NS_IMETHODIMP sbRemoteIndexedMediaItem::GetRemotePlayer(
sbIRemotePlayer * *aRemotePlayer)
88 NS_ENSURE_ARG_POINTER(aRemotePlayer);
91 *aRemotePlayer = nsnull;
96 NS_ENSURE_SUCCESS( rv, rv );
98 remotePlayer.swap( *aRemotePlayer );
110 sbRemoteIndexedMediaItem::GetIndex(PRUint32* _retval)
112 NS_ENSURE_ARG_POINTER(_retval);
117 sbRemoteIndexedMediaItem::GetMediaItem(
sbIMediaItem** _retval)
119 NS_ENSURE_ARG_POINTER(_retval);
123 NS_ENSURE_SUCCESS(rv, rv);
125 nsCOMPtr<sbIMediaItem> wrappedMediaItem;
128 getter_AddRefs(wrappedMediaItem));
129 NS_ENSURE_SUCCESS(rv, rv);
131 NS_ADDREF(*_retval = wrappedMediaItem);
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT(_class)
readonly attribute sbIRemotePlayer remotePlayer
This interface is a composition of many of our other interfaces with the goal of exposing a more web-...
nsISecurityCheckedComponent
A marker interface for objects that aggregate the security mixin.
static nsresult SB_WrapMediaItem(sbRemotePlayer *aRemotePlayer, sbIMediaItem *aMediaItem, sbIMediaItem **aRemoteMediaItem)
#define SB_IMPL_CLASSINFO_INTERFACES_ONLY(_class)