PageRenderTime 19ms CodeModel.GetById 15ms RepoModel.GetById 1ms 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. #ifndef __gen_nsIHttpHeaderVisitor_h__
  5. #define __gen_nsIHttpHeaderVisitor_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIHttpHeaderVisitor */
  14. #define NS_IHTTPHEADERVISITOR_IID_STR "0cf40717-d7c1-4a94-8c1e-d6c9734101bb"
  15. #define NS_IHTTPHEADERVISITOR_IID \
  16. {0x0cf40717, 0xd7c1, 0x4a94, \
  17. { 0x8c, 0x1e, 0xd6, 0xc9, 0x73, 0x41, 0x01, 0xbb }}
  18. /**
  19. * Implement this interface to visit http headers.
  20. *
  21. * @status FROZEN
  22. */
  23. class NS_NO_VTABLE NS_SCRIPTABLE nsIHttpHeaderVisitor : public nsISupports {
  24. public:
  25. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IHTTPHEADERVISITOR_IID)
  26. /**
  27. * Called by the nsIHttpChannel implementation when visiting request and
  28. * response headers.
  29. *
  30. * @param aHeader
  31. * the header being visited.
  32. * @param aValue
  33. * the header value (possibly a comma delimited list).
  34. *
  35. * @throw any exception to terminate enumeration
  36. */
  37. /* void visitHeader (in ACString aHeader, in ACString aValue); */
  38. NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue) = 0;
  39. };
  40. NS_DEFINE_STATIC_IID_ACCESSOR(nsIHttpHeaderVisitor, NS_IHTTPHEADERVISITOR_IID)
  41. /* Use this macro when declaring classes that implement this interface. */
  42. #define NS_DECL_NSIHTTPHEADERVISITOR \
  43. NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue);
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIHTTPHEADERVISITOR(_to) \
  46. NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue) { return _to VisitHeader(aHeader, aValue); }
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIHTTPHEADERVISITOR(_to) \
  49. NS_SCRIPTABLE NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitHeader(aHeader, aValue); }
  50. #if 0
  51. /* Use the code below as a template for the implementation class for this interface. */
  52. /* Header file */
  53. class nsHttpHeaderVisitor : public nsIHttpHeaderVisitor
  54. {
  55. public:
  56. NS_DECL_ISUPPORTS
  57. NS_DECL_NSIHTTPHEADERVISITOR
  58. nsHttpHeaderVisitor();
  59. private:
  60. ~nsHttpHeaderVisitor();
  61. protected:
  62. /* additional members */
  63. };
  64. /* Implementation file */
  65. NS_IMPL_ISUPPORTS1(nsHttpHeaderVisitor, nsIHttpHeaderVisitor)
  66. nsHttpHeaderVisitor::nsHttpHeaderVisitor()
  67. {
  68. /* member initializers and constructor code */
  69. }
  70. nsHttpHeaderVisitor::~nsHttpHeaderVisitor()
  71. {
  72. /* destructor code */
  73. }
  74. /* void visitHeader (in ACString aHeader, in ACString aValue); */
  75. NS_IMETHODIMP nsHttpHeaderVisitor::VisitHeader(const nsACString & aHeader, const nsACString & aValue)
  76. {
  77. return NS_ERROR_NOT_IMPLEMENTED;
  78. }
  79. /* End of implementation class template. */
  80. #endif
  81. #endif /* __gen_nsIHttpHeaderVisitor_h__ */