PageRenderTime 193ms CodeModel.GetById 80ms app.highlight 3ms RepoModel.GetById 108ms app.codeStats 0ms

/gecko_api/include/nsIHttpHeaderVisitor.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 107 lines | 48 code | 26 blank | 33 comment | 0 complexity | d6222570ceb5f27e995ce9e161441f57 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/netwerk/protocol/http/public/nsIHttpHeaderVisitor.idl
  3 */
  4
  5#ifndef __gen_nsIHttpHeaderVisitor_h__
  6#define __gen_nsIHttpHeaderVisitor_h__
  7
  8
  9#ifndef __gen_nsISupports_h__
 10#include "nsISupports.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIHttpHeaderVisitor */
 19#define NS_IHTTPHEADERVISITOR_IID_STR "0cf40717-d7c1-4a94-8c1e-d6c9734101bb"
 20
 21#define NS_IHTTPHEADERVISITOR_IID \
 22  {0x0cf40717, 0xd7c1, 0x4a94, \
 23    { 0x8c, 0x1e, 0xd6, 0xc9, 0x73, 0x41, 0x01, 0xbb }}
 24
 25/**
 26 * Implement this interface to visit http headers.
 27 *
 28 * @status FROZEN
 29 */
 30class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpHeaderVisitor : public nsISupports {
 31 public: 
 32
 33  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPHEADERVISITOR_IID)
 34
 35  /**
 36     * Called by the nsIHttpChannel implementation when visiting request and
 37     * response headers.
 38     *
 39     * @param aHeader
 40     *        the header being visited.
 41     * @param aValue
 42     *        the header value (possibly a comma delimited list).
 43     *
 44     * @throw any exception to terminate enumeration
 45     */
 46  /* void visitHeader (in ACString aHeader, in ACString aValue); */
 47  NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue) = 0;
 48
 49};
 50
 51  NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpHeaderVisitor, NS_IHTTPHEADERVISITOR_IID)
 52
 53/* Use this macro when declaring classes that implement this interface. */
 54#define NS_DECL_NSIHTTPHEADERVISITOR \
 55  NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue); 
 56
 57/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 58#define NS_FORWARD_NSIHTTPHEADERVISITOR(_to) \
 59  NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue) { return _to VisitHeader(aHeader, aValue); } 
 60
 61/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 62#define NS_FORWARD_SAFE_NSIHTTPHEADERVISITOR(_to) \
 63  NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitHeader(aHeader, aValue); } 
 64
 65#if 0
 66/* Use the code below as a template for the implementation class for this interface. */
 67
 68/* Header file */
 69class nsHttpHeaderVisitor : public nsIHttpHeaderVisitor
 70{
 71public:
 72  NS_DECL_ISUPPORTS
 73  NS_DECL_NSIHTTPHEADERVISITOR
 74
 75  nsHttpHeaderVisitor();
 76
 77private:
 78  ~nsHttpHeaderVisitor();
 79
 80protected:
 81  /* additional members */
 82};
 83
 84/* Implementation file */
 85NS_IMPL_ISUPPORTS1(nsHttpHeaderVisitor, nsIHttpHeaderVisitor)
 86
 87nsHttpHeaderVisitor::nsHttpHeaderVisitor()
 88{
 89  /* member initializers and constructor code */
 90}
 91
 92nsHttpHeaderVisitor::~nsHttpHeaderVisitor()
 93{
 94  /* destructor code */
 95}
 96
 97/* void visitHeader (in ACString aHeader, in ACString aValue); */
 98NS_IMETHODIMP nsHttpHeaderVisitor::VisitHeader(const nsACString & aHeader, const nsACString & aValue)
 99{
100    return NS_ERROR_NOT_IMPLEMENTED;
101}
102
103/* End of implementation class template. */
104#endif
105
106
107#endif /* __gen_nsIHttpHeaderVisitor_h__ */