Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
CHeaderSniffer.cpp File Reference
#include "CHeaderSniffer.h"
#include "UMacUnicode.h"
#include "UCustomNavServicesDialogs.h"
#include "netCore.h"
#include "nsIChannel.h"
#include "nsIHttpChannel.h"
#include "nsIURL.h"
#include "nsIStringEnumerator.h"
#include "nsIPrefService.h"
#include "nsIMIMEService.h"
#include "nsIMIMEInfo.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIDownload.h"
#include "nsILocalFileMac.h"

Go to the source code of this file.

Functions

static ESaveFormat SaveFormatFromPrefValue (PRInt32 inPrefValue)
static PRInt32 PrefValueFromSaveFormat (ESaveFormat inSaveFormat)

Variables

const char *const persistContractID = "@mozilla.org/embedding/browser/nsWebBrowserPersist;1"

Function Documentation

static PRInt32 PrefValueFromSaveFormat ( ESaveFormat  inSaveFormat) [static]

Definition at line 173 of file CHeaderSniffer.cpp.

{
  switch (inSaveFormat)
  {
    case eSaveFormatPlainText:    return 2;
    default:  // fall through
    case eSaveFormatHTML:         return 1;
    case eSaveFormatHTMLComplete: return 0;
  }
}

Here is the caller graph for this function:

static ESaveFormat SaveFormatFromPrefValue ( PRInt32  inPrefValue) [static]

Definition at line 162 of file CHeaderSniffer.cpp.

{
  switch (inPrefValue)
  {
    case 0:   return eSaveFormatHTMLComplete;
    default:  // fall through
    case 1:   return eSaveFormatHTML;
    case 2:   return eSaveFormatPlainText;
  }
}

Here is the caller graph for this function:


Variable Documentation

const char* const persistContractID = "@mozilla.org/embedding/browser/nsWebBrowserPersist;1"

Definition at line 57 of file CHeaderSniffer.cpp.