Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Private Member Functions
nsContentHTTPStartup Class Reference

#include <nsContentHTTPStartup.h>

Inheritance diagram for nsContentHTTPStartup:
Inheritance graph
[legend]
Collaboration diagram for nsContentHTTPStartup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsContentHTTPStartup ()
virtual ~nsContentHTTPStartup ()
void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.

Static Public Member Functions

static NS_IMETHODIMP RegisterHTTPStartup (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const char *aComponentType, const nsModuleComponentInfo *aInfo)
static NS_IMETHODIMP UnregisterHTTPStartup (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aRegistryLocation, const nsModuleComponentInfo *aInfo)

Private Member Functions

nsresult setUserAgent ()

Detailed Description

Definition at line 52 of file nsContentHTTPStartup.h.


Constructor & Destructor Documentation

Definition at line 55 of file nsContentHTTPStartup.h.

{ }
virtual nsContentHTTPStartup::~nsContentHTTPStartup ( ) [inline, virtual]

Definition at line 56 of file nsContentHTTPStartup.h.

{}

Member Function Documentation

void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
) [inherited]

Observe will be called when there is a notification for the topic |aTopic|.

This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

Parameters:
aSubject: Notification specific interface pointer.
aTopic: The notification topic or subject.
aData: Notification specific wide string. subject event.
nsresult nsContentHTTPStartup::RegisterHTTPStartup ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const char *  aComponentType,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 78 of file nsContentHTTPStartup.cpp.

{
    nsresult rv;
    nsCOMPtr<nsICategoryManager>
        catMan(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
  
    if (NS_FAILED(rv)) return rv;

    nsXPIDLCString previousEntry;
    rv = catMan->AddCategoryEntry(NS_HTTP_STARTUP_CATEGORY,
                                  "Content UserAgent Setter",
                                  NS_CONTENTHTTPSTARTUP_CONTRACTID,
                                  PR_TRUE, PR_TRUE,
                                  getter_Copies(previousEntry));
    return rv;
}

Here is the call graph for this function:

nsresult nsContentHTTPStartup::UnregisterHTTPStartup ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  aRegistryLocation,
const nsModuleComponentInfo aInfo 
) [static]

Definition at line 100 of file nsContentHTTPStartup.cpp.

Here is the call graph for this function:


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