Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsWebScriptsAccess.cpp File Reference
#include "nsWebScriptsAccess.h"
#include "nsString.h"
#include "nsAutoPtr.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMAttr.h"
#include "nsIDOMNamedNodeMap.h"
#include "nsIPrincipal.h"
#include "nsIURL.h"
#include "nsReadableUtils.h"
#include "nsIHttpChannel.h"
#include "nsNetUtil.h"
#include "nsIXPConnect.h"
#include "jsapi.h"
#include "nsISOAPCall.h"
#include "nsISOAPEncoding.h"
#include "nsISOAPResponse.h"
#include "nsISOAPFault.h"
#include "nsISOAPParameter.h"
#include "nsISOAPBlock.h"
#include "nsIVariant.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch2.h"
#include "nsIJSContextStack.h"

Go to the source code of this file.

Defines

#define WSA_GRANT_ACCESS_TO_ALL   (1 << 0)
#define WSA_FILE_NOT_FOUND   (1 << 1)
#define WSA_FILE_DELEGATED   (1 << 2)
#define SERVICE_LISTED_PUBLIC   (1 << 3)
#define HAS_MASTER_SERVICE_DECISION   (1 << 4)

Functions

static PRBool PR_CALLBACK FreeEntries (nsHashKey *aKey, void *aData, void *aClosure)
 NS_IMPL_ISUPPORTS1 (nsWebScriptsAccess, nsIWebScriptsAccessService) nsWebScriptsAccess
static PRBool IsCharInSet (const char *aSet, const PRUnichar aChar)

Define Documentation

Definition at line 69 of file nsWebScriptsAccess.cpp.

#define SERVICE_LISTED_PUBLIC   (1 << 3)

Definition at line 68 of file nsWebScriptsAccess.cpp.

#define WSA_FILE_DELEGATED   (1 << 2)

Definition at line 67 of file nsWebScriptsAccess.cpp.

#define WSA_FILE_NOT_FOUND   (1 << 1)

Definition at line 66 of file nsWebScriptsAccess.cpp.

Definition at line 65 of file nsWebScriptsAccess.cpp.


Function Documentation

static PRBool PR_CALLBACK FreeEntries ( nsHashKey *  aKey,
void aData,
void aClosure 
) [static]

Definition at line 72 of file nsWebScriptsAccess.cpp.

Here is the caller graph for this function:

static PRBool IsCharInSet ( const char *  aSet,
const PRUnichar  aChar 
) [static]

Definition at line 647 of file nsWebScriptsAccess.cpp.

{
  PRUnichar ch;
  while ((ch = *aSet)) {
    if (aChar == PRUnichar(ch)) {
      return PR_TRUE;
    }
    ++aSet;
  }
  return PR_FALSE;
}

Definition at line 79 of file nsWebScriptsAccess.cpp.

  : NS_LITERAL_STRING_INIT(kNamespace2002, "http://www.mozilla.org/2002/soap/security")
  , NS_LITERAL_STRING_INIT(kWebScriptAccessTag, "webScriptAccess")
  , NS_LITERAL_STRING_INIT(kDelegateTag, "delegate")
  , NS_LITERAL_STRING_INIT(kAllowTag, "allow")
  , NS_LITERAL_STRING_INIT(kTypeAttr, "type")
  , NS_LITERAL_STRING_INIT(kFromAttr, "from")
  , NS_LITERAL_STRING_INIT(kAny, "any")
  , NS_LITERAL_STRING_INIT(kIsServicePublic, "isServicePublic")
{
}