Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsContentBlocker.cpp File Reference
#include "nsContentBlocker.h"
#include "nsIDocument.h"
#include "nsIContent.h"
#include "nsINodeInfo.h"
#include "nsIURI.h"
#include "nsIServiceManager.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMWindow.h"
#include "nsIDOMDocument.h"
#include "nsIDocShellTreeItem.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "nsIDocShell.h"
#include "nsString.h"
#include "nsContentPolicyUtils.h"

Go to the source code of this file.

Defines

#define BEHAVIOR_ACCEPT   nsIPermissionManager::ALLOW_ACTION
#define BEHAVIOR_REJECT   nsIPermissionManager::DENY_ACTION
#define BEHAVIOR_NOFOREIGN   3
#define LIMIT(x, low, high, default)   ((x) >= (low) && (x) <= (high) ? (x) : (default))
#define PREF_CHANGED(_P)   (!aPref || !strcmp(aPref, _P))

Functions

 NS_IMPL_ISUPPORTS3 (nsContentBlocker, nsIContentPolicy, nsIObserver, nsSupportsWeakReference) nsContentBlocker

Variables

static const char * kTypeString [NUMBER_OF_TYPES]

Define Documentation

Definition at line 54 of file nsContentBlocker.cpp.

Definition at line 56 of file nsContentBlocker.cpp.

Definition at line 55 of file nsContentBlocker.cpp.

#define LIMIT (   x,
  low,
  high,
  default 
)    ((x) >= (low) && (x) <= (high) ? (x) : (default))

Definition at line 129 of file nsContentBlocker.cpp.

#define PREF_CHANGED (   _P)    (!aPref || !strcmp(aPref, _P))

Function Documentation

NS_IMPL_ISUPPORTS3 ( nsContentBlocker  ,
nsIContentPolicy  ,
nsIObserver  ,
nsSupportsWeakReference   
)

Definition at line 69 of file nsContentBlocker.cpp.

{
  memset(mBehaviorPref, BEHAVIOR_ACCEPT, NUMBER_OF_TYPES);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {"other", 
                                                   "script",
                                                   "image",
                                                   "stylesheet",
                                                   "object",
                                                   "document",
                                                   "subdocument",
                                                   "refresh"}

Definition at line 59 of file nsContentBlocker.cpp.