OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/netwerk/protocol/http/public/nsIHttpHeaderVisi
tor.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 */ |
| 30 class NS_NO_VTABLE nsIHttpHeaderVisitor : public nsISupports { |
| 31 public: |
| 32 |
| 33 NS_DEFINE_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_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue)
= 0; |
| 48 |
| 49 }; |
| 50 |
| 51 /* Use this macro when declaring classes that implement this interface. */ |
| 52 #define NS_DECL_NSIHTTPHEADERVISITOR \ |
| 53 NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue);
|
| 54 |
| 55 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 56 #define NS_FORWARD_NSIHTTPHEADERVISITOR(_to) \ |
| 57 NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue)
{ return _to VisitHeader(aHeader, aValue); } |
| 58 |
| 59 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 60 #define NS_FORWARD_SAFE_NSIHTTPHEADERVISITOR(_to) \ |
| 61 NS_IMETHOD VisitHeader(const nsACString & aHeader, const nsACString & aValue)
{ return !_to ? NS_ERROR_NULL_POINTER : _to->VisitHeader(aHeader, aValue); } |
| 62 |
| 63 #if 0 |
| 64 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 65 |
| 66 /* Header file */ |
| 67 class nsHttpHeaderVisitor : public nsIHttpHeaderVisitor |
| 68 { |
| 69 public: |
| 70 NS_DECL_ISUPPORTS |
| 71 NS_DECL_NSIHTTPHEADERVISITOR |
| 72 |
| 73 nsHttpHeaderVisitor(); |
| 74 |
| 75 private: |
| 76 ~nsHttpHeaderVisitor(); |
| 77 |
| 78 protected: |
| 79 /* additional members */ |
| 80 }; |
| 81 |
| 82 /* Implementation file */ |
| 83 NS_IMPL_ISUPPORTS1(nsHttpHeaderVisitor, nsIHttpHeaderVisitor) |
| 84 |
| 85 nsHttpHeaderVisitor::nsHttpHeaderVisitor() |
| 86 { |
| 87 /* member initializers and constructor code */ |
| 88 } |
| 89 |
| 90 nsHttpHeaderVisitor::~nsHttpHeaderVisitor() |
| 91 { |
| 92 /* destructor code */ |
| 93 } |
| 94 |
| 95 /* void visitHeader (in ACString aHeader, in ACString aValue); */ |
| 96 NS_IMETHODIMP nsHttpHeaderVisitor::VisitHeader(const nsACString & aHeader, const
nsACString & aValue) |
| 97 { |
| 98 return NS_ERROR_NOT_IMPLEMENTED; |
| 99 } |
| 100 |
| 101 /* End of implementation class template. */ |
| 102 #endif |
| 103 |
| 104 |
| 105 #endif /* __gen_nsIHttpHeaderVisitor_h__ */ |
OLD | NEW |