Songbird / Development / Songbird Add-Ons API Documentation

sbISecurityMixin Interface Reference

An interface for setting up nsISecurityCheckedComponent security checks. More...

import "sbISecurityMixin.idl";

List of all members.

Public Member Functions

nsIURI getCodebase ()
 Gets the URI for the current location.
boolean getPermissionForScopedNameWrapper (in AString aRemotePermCategory)
 Get the permissions for a category.

Public Attributes

attribute nsIDOMDocument notificationDocument
 the DOM document to send notification events to


Detailed Description

An interface for setting up nsISecurityCheckedComponent security checks.

Implemented by objects that provide the nsISecurityCheckedComponent functionality to allow other classes to aggregate (or compose) that functionality in without implementing it directly.

See also:
nsISecurityCheckedComponent

Definition at line 53 of file sbISecurityMixin.idl.


Member Function Documentation

nsIURI sbISecurityMixin::getCodebase (  ) 

Gets the URI for the current location.

Can return NS_OK and a null URI. Needs to do so to allow security checks to succeed when called from native code.

Parameters:
aSiteURI - The URI of the subject principal, basically the calling page. It is pulled from the JS stack. This will be null if the security check originated from native code and not an access on a web page.
Returns:
NS_OK - indicates no implicit failure of code, does not ensure URI is set.

boolean sbISecurityMixin::getPermissionForScopedNameWrapper ( in AString  aRemotePermCategory  ) 

Get the permissions for a category.

Parameters:
aRemotePermCategory - String representation of the category to check. "Control Playback" "Read Current" "Read Library" "Add Media" "Create Medialists"
_retval - True if site has permissions in category, False if site does not have permissions in category.
Returns:
NS_OK


The documentation for this interface was generated from the following file:
Generated on Tue Mar 10 14:29:02 2009 for Songbird by  doxygen 1.5.2