Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsPolicyReference.cpp File Reference
#include "nsPolicyReference.h"
#include "nsNetUtil.h"
#include "nsP3PUtils.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIPolicyListener.h"

Go to the source code of this file.

Defines

#define CLEAN_ARRAY_AND_RETURN_IF_FAILED(_result, _array)

Functions

static nsresult RequestSucceeded (nsIXMLHttpRequest *aRequest, PRBool *aReturn)
 NS_IMPL_ISUPPORTS4 (nsPolicyReference, nsIPolicyReference, nsIPolicyTarget, nsIDOMEventListener, nsISupportsWeakReference) nsPolicyReference

Variables

static const char kWellKnownLocation [] = "/w3c/p3p.xml"
static const char kW3C [] = "/w3c/"

Define Documentation

#define CLEAN_ARRAY_AND_RETURN_IF_FAILED (   _result,
  _array 
)
Value:
PR_BEGIN_MACRO                    \
 if(NS_FAILED(_result)) {          \
   nsP3PUtils::CleanArray(_array); \
   return _result;                 \
 }                                 \
 PR_END_MACRO

Definition at line 46 of file nsPolicyReference.cpp.


Function Documentation

Definition at line 71 of file nsPolicyReference.cpp.

  : mFlags (0),
    mError (0)
{
}
static nsresult RequestSucceeded ( nsIXMLHttpRequest aRequest,
PRBool aReturn 
) [static]

Definition at line 58 of file nsPolicyReference.cpp.

{
  NS_ENSURE_ARG_POINTER(aRequest);

  nsresult rv;
  nsCOMPtr<nsIChannel> channel;
  aRequest->GetChannel(getter_AddRefs(channel));
  nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(channel, &rv));
  NS_ENSURE_TRUE(httpChannel, rv);

  return httpChannel->GetRequestSucceeded(aReturn);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char kW3C[] = "/w3c/" [static]

Definition at line 55 of file nsPolicyReference.cpp.

const char kWellKnownLocation[] = "/w3c/p3p.xml" [static]

Definition at line 54 of file nsPolicyReference.cpp.