41 #define LOG(args) LOG_ITEM(args)
63 "classinfo:classDescription",
64 "classinfo:contractID",
66 "classinfo:implementationLanguage",
86 const PRUnichar* aPropertyID,
89 LOG_ITEM((
"sbRemoteSiteMediaItemSecurityMixin::CanGetProperty()"));
90 nsresult rv = sbSecurityMixin::CanGetProperty( aIID, aPropertyID, _retval );
91 NS_ENSURE_SUCCESS( rv, rv );
97 nsDependentString propID(aPropertyID);
98 if (propID.EqualsLiteral(
"contentSrc")) {
100 rv = mMediaItem->GetContentSrc(getter_AddRefs(uri));
101 NS_ENSURE_SUCCESS( rv, rv );
104 rv = uri->SchemeIs(
"file" , &isFileURI );
105 NS_ENSURE_SUCCESS( rv, rv );
108 NS_WARNING(
"Disallowing access to 'file:' URI from contentSrc attribute");
109 return NS_ERROR_FAILURE;
133 (mRemotePlayer, mMediaItem) )
140 LOG_ITEM((
"sbRemoteSiteMediaItem::sbRemoteSiteMediaItem()"));
141 NS_ASSERTION( aMediaItem,
"Null media item!" );
146 LOG_ITEM((
"sbRemoteSiteMediaItem::~sbRemoteSiteMediaItem()"));
nsISecurityCheckedComponent
A marker interface for objects that aggregate the security mixin.
General interface to data resources.
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_LIBRES(_class,_mixin, _mixinArgs,_libres, _libresArgs)
#define SB_IMPL_CLASSINFO_INTERFACES_ONLY(_class)