sbRemoteAPI.h File Reference
#include <sbISecurityAggregator.h>
#include <sbISecurityMixin.h>
#include <nsAutoPtr.h>
#include <nsMemory.h>
#include <nsPIDOMWindow.h>
#include <nsIDOMDocument.h>
#include "sbSecurityMixin.h"
Include dependency graph for sbRemoteAPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOG(args)   /* nothing */
 
#define SB_DECL_SECURITYCHECKEDCOMP_INIT   virtual nsresult Init();
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_TAIL()
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_MID(_class, _mixin, _mixinArgs)
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT(_class)
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_LIBRES(_class,_mixin, _mixinArgs,_libres, _libresArgs)
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_LIBRES(_class, _libres, _libresArgs)
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_NOPLAYER_MIXIN(_class, _mixin, _mixinArgs)
 
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_NOPLAYER(_class)   SB_IMPL_SECURITYCHECKEDCOMP_INIT_NOPLAYER_MIXIN( _class, sbSecurityMixin, () )
 

Macro Definition Documentation

#define LOG (   args)    /* nothing */

Definition at line 39 of file sbRemoteAPI.h.

#define SB_DECL_SECURITYCHECKEDCOMP_INIT   virtual nsresult Init();

Definition at line 42 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT (   _class)
Value:
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_TAIL()
Definition: sbRemoteAPI.h:44
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_MID(_class, _mixin, _mixinArgs)
Definition: sbRemoteAPI.h:48

Definition at line 82 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_LIBRES (   _class,
  _libres,
  _libresArgs 
)
Value:
_libres, _libresArgs ) \
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_LIBRES(_class,_mixin, _mixinArgs,_libres, _libresArgs)
Definition: sbRemoteAPI.h:86

Definition at line 94 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_LIBRES (   _class,
  _mixin,
  _mixinArgs,
  _libres,
  _libresArgs 
)
Value:
SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_MID( _class, _mixin, _mixinArgs ) \
mRemLibraryResource = new _libres _libresArgs; \
NS_ENSURE_TRUE( mRemLibraryResource, NS_ERROR_OUT_OF_MEMORY ); \
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_TAIL()
Definition: sbRemoteAPI.h:44
#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_MID(_class, _mixin, _mixinArgs)
Definition: sbRemoteAPI.h:48

Definition at line 86 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_MIXIN_MID (   _class,
  _mixin,
  _mixinArgs 
)

Definition at line 48 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_NOPLAYER (   _class)    SB_IMPL_SECURITYCHECKEDCOMP_INIT_NOPLAYER_MIXIN( _class, sbSecurityMixin, () )

Definition at line 127 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_NOPLAYER_MIXIN (   _class,
  _mixin,
  _mixinArgs 
)
Value:
{ \
LOG(( "%s::Init()", #_class )); \
nsresult rv; \
nsRefPtr<_mixin> mixin = new _mixin _mixinArgs; \
NS_ENSURE_TRUE( mixin, NS_ERROR_OUT_OF_MEMORY ); \
/* Get the list of IIDs to pass to the security mixin */ \
nsIID **iids; \
PRUint32 iidCount; \
GetInterfaces( &iidCount, &iids ); \
/* initialize our mixin with approved interfaces, methods, properties */ \
rv = mixin->Init( (sbISecurityAggregator*)this, \
( const nsIID** )iids, iidCount, \
sPublicMethods, NS_ARRAY_LENGTH(sPublicMethods), \
PR_FALSE); \
NS_ENSURE_SUCCESS( rv, rv ); \
NS_FREE_XPCOM_ALLOCATED_POINTER_ARRAY(iidCount, iids); \
mSecurityMixin = do_QueryInterface( \
NS_ISUPPORTS_CAST( sbISecurityMixin*, mixin ), &rv ); \
NS_ENSURE_SUCCESS( rv, rv ); \
}
return NS_OK
An interface for setting up nsISecurityCheckedComponent security checks.
static const char * sPublicWProperties[]
A marker interface for objects that aggregate the security mixin.
function Init()
#define LOG(args)
Definition: sbRemoteAPI.h:39
return
Definition: FeedWriter.js:850
static const char * sPublicMethods[]
static const char * sPublicRProperties[]

Definition at line 100 of file sbRemoteAPI.h.

#define SB_IMPL_SECURITYCHECKEDCOMP_INIT_TAIL ( )
Value:
return NS_OK; \
}
return NS_OK

Definition at line 44 of file sbRemoteAPI.h.