Back to index

lightning-sunbird  0.9+nobinonly
Public Attributes | Protected Member Functions
nsBrowserContentHandler Class Reference

#include <nsBrowserInstance.h>

Inheritance diagram for nsBrowserContentHandler:
Inheritance graph
Collaboration diagram for nsBrowserContentHandler:
Collaboration graph

List of all members.

Public Attributes

readonly attribute string commandLineArgument
readonly attribute string prefNameForStartup
readonly attribute string chromeUrlForTask
readonly attribute string helpText
readonly attribute boolean handlesArgs
readonly attribute wstring defaultArgs
readonly attribute boolean openWindowWithArgs

Protected Member Functions

PRBool NeedHomepageOverride (nsIPref *aPrefService)

Detailed Description

Definition at line 108 of file nsBrowserInstance.h.

Member Function Documentation

Definition at line 669 of file nsBrowserInstance.cpp.

  NS_ASSERTION(aPrefService, "Null pointer to prefs service!");

  // get saved milestone from user's prefs
  nsXPIDLCString savedMilestone;
  // Mozilla never saves this value, but a fed-up advanced user might
  if (savedMilestone.Equals(kIgnoreOverrideMilestone))
    return PR_FALSE;

  // get browser's current milestone
  nsCOMPtr<nsIHttpProtocolHandler> httpHandler(
  if (!httpHandler)
    return PR_TRUE;

  nsCAutoString currMilestone;

  // failed to get pref -or- saved milestone older than current milestone, 
  // write out known current milestone and show URL this time
  if (!(currMilestone.Equals(savedMilestone))) {
    // update milestone in "homepage override" pref
    return PR_TRUE;
  // don't override if saved and current are same
  return PR_FALSE;

Here is the call graph for this function:

Member Data Documentation

Definition at line 198 of file nsICmdLineHandler.idl.

Definition at line 196 of file nsICmdLineHandler.idl.

readonly attribute wstring nsICmdLineHandler::defaultArgs [inherited]

Definition at line 202 of file nsICmdLineHandler.idl.

Definition at line 201 of file nsICmdLineHandler.idl.

Definition at line 199 of file nsICmdLineHandler.idl.

Definition at line 203 of file nsICmdLineHandler.idl.

Definition at line 197 of file nsICmdLineHandler.idl.

The documentation for this class was generated from the following files: