LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsINavHistoryService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 2 8 25.0 %
Date: 2017-07-14 16:53:18 Functions: 2 8 25.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsINavHistoryService.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsINavHistoryService_h__
       6             : #define __gen_nsINavHistoryService_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             : class nsIArray; /* forward declaration */
      18             : 
      19             : class nsIURI; /* forward declaration */
      20             : 
      21             : class nsIVariant; /* forward declaration */
      22             : 
      23             : class nsIFile; /* forward declaration */
      24             : 
      25             : class nsINavHistoryContainerResultNode; /* forward declaration */
      26             : 
      27             : class nsINavHistoryQueryResultNode; /* forward declaration */
      28             : 
      29             : class nsINavHistoryQuery; /* forward declaration */
      30             : 
      31             : class nsINavHistoryQueryOptions; /* forward declaration */
      32             : 
      33             : class nsINavHistoryResult; /* forward declaration */
      34             : 
      35             : class nsINavHistoryBatchCallback; /* forward declaration */
      36             : 
      37             : 
      38             : /* starting interface:    nsINavHistoryResultNode */
      39             : #define NS_INAVHISTORYRESULTNODE_IID_STR "91d104bb-17ef-404b-9f9a-d9ed8de6824c"
      40             : 
      41             : #define NS_INAVHISTORYRESULTNODE_IID \
      42             :   {0x91d104bb, 0x17ef, 0x404b, \
      43             :     { 0x9f, 0x9a, 0xd9, 0xed, 0x8d, 0xe6, 0x82, 0x4c }}
      44             : 
      45           0 : class NS_NO_VTABLE nsINavHistoryResultNode : public nsISupports {
      46             :  public:
      47             : 
      48             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULTNODE_IID)
      49             : 
      50             :   /* readonly attribute nsINavHistoryContainerResultNode parent; */
      51             :   NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) = 0;
      52             : 
      53             :   /* readonly attribute nsINavHistoryResult parentResult; */
      54             :   NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) = 0;
      55             : 
      56             :   /* readonly attribute AUTF8String uri; */
      57             :   NS_IMETHOD GetUri(nsACString & aUri) = 0;
      58             : 
      59             :   enum {
      60             :     RESULT_TYPE_URI = 0U,
      61             :     RESULT_TYPE_QUERY = 5U,
      62             :     RESULT_TYPE_FOLDER = 6U,
      63             :     RESULT_TYPE_SEPARATOR = 7U,
      64             :     RESULT_TYPE_FOLDER_SHORTCUT = 9U
      65             :   };
      66             : 
      67             :   /* readonly attribute unsigned long type; */
      68             :   NS_IMETHOD GetType(uint32_t *aType) = 0;
      69             : 
      70             :   /* readonly attribute AUTF8String title; */
      71             :   NS_IMETHOD GetTitle(nsACString & aTitle) = 0;
      72             : 
      73             :   /* readonly attribute unsigned long accessCount; */
      74             :   NS_IMETHOD GetAccessCount(uint32_t *aAccessCount) = 0;
      75             : 
      76             :   /* readonly attribute PRTime time; */
      77             :   NS_IMETHOD GetTime(PRTime *aTime) = 0;
      78             : 
      79             :   /* readonly attribute AUTF8String icon; */
      80             :   NS_IMETHOD GetIcon(nsACString & aIcon) = 0;
      81             : 
      82             :   /* readonly attribute long indentLevel; */
      83             :   NS_IMETHOD GetIndentLevel(int32_t *aIndentLevel) = 0;
      84             : 
      85             :   /* readonly attribute long bookmarkIndex; */
      86             :   NS_IMETHOD GetBookmarkIndex(int32_t *aBookmarkIndex) = 0;
      87             : 
      88             :   /* readonly attribute long long itemId; */
      89             :   NS_IMETHOD GetItemId(int64_t *aItemId) = 0;
      90             : 
      91             :   /* readonly attribute PRTime dateAdded; */
      92             :   NS_IMETHOD GetDateAdded(PRTime *aDateAdded) = 0;
      93             : 
      94             :   /* readonly attribute PRTime lastModified; */
      95             :   NS_IMETHOD GetLastModified(PRTime *aLastModified) = 0;
      96             : 
      97             :   /* readonly attribute AString tags; */
      98             :   NS_IMETHOD GetTags(nsAString & aTags) = 0;
      99             : 
     100             :   /* readonly attribute ACString pageGuid; */
     101             :   NS_IMETHOD GetPageGuid(nsACString & aPageGuid) = 0;
     102             : 
     103             :   /* readonly attribute ACString bookmarkGuid; */
     104             :   NS_IMETHOD GetBookmarkGuid(nsACString & aBookmarkGuid) = 0;
     105             : 
     106             :   /* readonly attribute long long visitId; */
     107             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) = 0;
     108             : 
     109             :   /* readonly attribute long long fromVisitId; */
     110             :   NS_IMETHOD GetFromVisitId(int64_t *aFromVisitId) = 0;
     111             : 
     112             :   /* readonly attribute unsigned long visitType; */
     113             :   NS_IMETHOD GetVisitType(uint32_t *aVisitType) = 0;
     114             : 
     115             : };
     116             : 
     117             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResultNode, NS_INAVHISTORYRESULTNODE_IID)
     118             : 
     119             : /* Use this macro when declaring classes that implement this interface. */
     120             : #define NS_DECL_NSINAVHISTORYRESULTNODE \
     121             :   NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) override; \
     122             :   NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) override; \
     123             :   NS_IMETHOD GetUri(nsACString & aUri) override; \
     124             :   NS_IMETHOD GetType(uint32_t *aType) override; \
     125             :   NS_IMETHOD GetTitle(nsACString & aTitle) override; \
     126             :   NS_IMETHOD GetAccessCount(uint32_t *aAccessCount) override; \
     127             :   NS_IMETHOD GetTime(PRTime *aTime) override; \
     128             :   NS_IMETHOD GetIcon(nsACString & aIcon) override; \
     129             :   NS_IMETHOD GetIndentLevel(int32_t *aIndentLevel) override; \
     130             :   NS_IMETHOD GetBookmarkIndex(int32_t *aBookmarkIndex) override; \
     131             :   NS_IMETHOD GetItemId(int64_t *aItemId) override; \
     132             :   NS_IMETHOD GetDateAdded(PRTime *aDateAdded) override; \
     133             :   NS_IMETHOD GetLastModified(PRTime *aLastModified) override; \
     134             :   NS_IMETHOD GetTags(nsAString & aTags) override; \
     135             :   NS_IMETHOD GetPageGuid(nsACString & aPageGuid) override; \
     136             :   NS_IMETHOD GetBookmarkGuid(nsACString & aBookmarkGuid) override; \
     137             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) override; \
     138             :   NS_IMETHOD GetFromVisitId(int64_t *aFromVisitId) override; \
     139             :   NS_IMETHOD GetVisitType(uint32_t *aVisitType) override; 
     140             : 
     141             : /* Use this macro when declaring the members of this interface when the
     142             :    class doesn't implement the interface. This is useful for forwarding. */
     143             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYRESULTNODE \
     144             :   nsresult GetParent(nsINavHistoryContainerResultNode * *aParent); \
     145             :   nsresult GetParentResult(nsINavHistoryResult * *aParentResult); \
     146             :   nsresult GetUri(nsACString & aUri); \
     147             :   nsresult GetType(uint32_t *aType); \
     148             :   nsresult GetTitle(nsACString & aTitle); \
     149             :   nsresult GetAccessCount(uint32_t *aAccessCount); \
     150             :   nsresult GetTime(PRTime *aTime); \
     151             :   nsresult GetIcon(nsACString & aIcon); \
     152             :   nsresult GetIndentLevel(int32_t *aIndentLevel); \
     153             :   nsresult GetBookmarkIndex(int32_t *aBookmarkIndex); \
     154             :   nsresult GetItemId(int64_t *aItemId); \
     155             :   nsresult GetDateAdded(PRTime *aDateAdded); \
     156             :   nsresult GetLastModified(PRTime *aLastModified); \
     157             :   nsresult GetTags(nsAString & aTags); \
     158             :   nsresult GetPageGuid(nsACString & aPageGuid); \
     159             :   nsresult GetBookmarkGuid(nsACString & aBookmarkGuid); \
     160             :   nsresult GetVisitId(int64_t *aVisitId); \
     161             :   nsresult GetFromVisitId(int64_t *aFromVisitId); \
     162             :   nsresult GetVisitType(uint32_t *aVisitType); 
     163             : 
     164             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     165             : #define NS_FORWARD_NSINAVHISTORYRESULTNODE(_to) \
     166             :   NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) override { return _to GetParent(aParent); } \
     167             :   NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) override { return _to GetParentResult(aParentResult); } \
     168             :   NS_IMETHOD GetUri(nsACString & aUri) override { return _to GetUri(aUri); } \
     169             :   NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \
     170             :   NS_IMETHOD GetTitle(nsACString & aTitle) override { return _to GetTitle(aTitle); } \
     171             :   NS_IMETHOD GetAccessCount(uint32_t *aAccessCount) override { return _to GetAccessCount(aAccessCount); } \
     172             :   NS_IMETHOD GetTime(PRTime *aTime) override { return _to GetTime(aTime); } \
     173             :   NS_IMETHOD GetIcon(nsACString & aIcon) override { return _to GetIcon(aIcon); } \
     174             :   NS_IMETHOD GetIndentLevel(int32_t *aIndentLevel) override { return _to GetIndentLevel(aIndentLevel); } \
     175             :   NS_IMETHOD GetBookmarkIndex(int32_t *aBookmarkIndex) override { return _to GetBookmarkIndex(aBookmarkIndex); } \
     176             :   NS_IMETHOD GetItemId(int64_t *aItemId) override { return _to GetItemId(aItemId); } \
     177             :   NS_IMETHOD GetDateAdded(PRTime *aDateAdded) override { return _to GetDateAdded(aDateAdded); } \
     178             :   NS_IMETHOD GetLastModified(PRTime *aLastModified) override { return _to GetLastModified(aLastModified); } \
     179             :   NS_IMETHOD GetTags(nsAString & aTags) override { return _to GetTags(aTags); } \
     180             :   NS_IMETHOD GetPageGuid(nsACString & aPageGuid) override { return _to GetPageGuid(aPageGuid); } \
     181             :   NS_IMETHOD GetBookmarkGuid(nsACString & aBookmarkGuid) override { return _to GetBookmarkGuid(aBookmarkGuid); } \
     182             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) override { return _to GetVisitId(aVisitId); } \
     183             :   NS_IMETHOD GetFromVisitId(int64_t *aFromVisitId) override { return _to GetFromVisitId(aFromVisitId); } \
     184             :   NS_IMETHOD GetVisitType(uint32_t *aVisitType) override { return _to GetVisitType(aVisitType); } 
     185             : 
     186             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     187             : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULTNODE(_to) \
     188             :   NS_IMETHOD GetParent(nsINavHistoryContainerResultNode * *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
     189             :   NS_IMETHOD GetParentResult(nsINavHistoryResult * *aParentResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentResult(aParentResult); } \
     190             :   NS_IMETHOD GetUri(nsACString & aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
     191             :   NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     192             :   NS_IMETHOD GetTitle(nsACString & aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
     193             :   NS_IMETHOD GetAccessCount(uint32_t *aAccessCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessCount(aAccessCount); } \
     194             :   NS_IMETHOD GetTime(PRTime *aTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTime(aTime); } \
     195             :   NS_IMETHOD GetIcon(nsACString & aIcon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcon(aIcon); } \
     196             :   NS_IMETHOD GetIndentLevel(int32_t *aIndentLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndentLevel(aIndentLevel); } \
     197             :   NS_IMETHOD GetBookmarkIndex(int32_t *aBookmarkIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBookmarkIndex(aBookmarkIndex); } \
     198             :   NS_IMETHOD GetItemId(int64_t *aItemId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemId(aItemId); } \
     199             :   NS_IMETHOD GetDateAdded(PRTime *aDateAdded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateAdded(aDateAdded); } \
     200             :   NS_IMETHOD GetLastModified(PRTime *aLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
     201             :   NS_IMETHOD GetTags(nsAString & aTags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTags(aTags); } \
     202             :   NS_IMETHOD GetPageGuid(nsACString & aPageGuid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageGuid(aPageGuid); } \
     203             :   NS_IMETHOD GetBookmarkGuid(nsACString & aBookmarkGuid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBookmarkGuid(aBookmarkGuid); } \
     204             :   NS_IMETHOD GetVisitId(int64_t *aVisitId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitId(aVisitId); } \
     205             :   NS_IMETHOD GetFromVisitId(int64_t *aFromVisitId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromVisitId(aFromVisitId); } \
     206             :   NS_IMETHOD GetVisitType(uint32_t *aVisitType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitType(aVisitType); } 
     207             : 
     208             : #if 0
     209             : /* Use the code below as a template for the implementation class for this interface. */
     210             : 
     211             : /* Header file */
     212             : class nsNavHistoryResultNode : public nsINavHistoryResultNode
     213             : {
     214             : public:
     215             :   NS_DECL_ISUPPORTS
     216             :   NS_DECL_NSINAVHISTORYRESULTNODE
     217             : 
     218             :   nsNavHistoryResultNode();
     219             : 
     220             : private:
     221             :   ~nsNavHistoryResultNode();
     222             : 
     223             : protected:
     224             :   /* additional members */
     225             : };
     226             : 
     227             : /* Implementation file */
     228             : NS_IMPL_ISUPPORTS(nsNavHistoryResultNode, nsINavHistoryResultNode)
     229             : 
     230             : nsNavHistoryResultNode::nsNavHistoryResultNode()
     231             : {
     232             :   /* member initializers and constructor code */
     233             : }
     234             : 
     235             : nsNavHistoryResultNode::~nsNavHistoryResultNode()
     236             : {
     237             :   /* destructor code */
     238             : }
     239             : 
     240             : /* readonly attribute nsINavHistoryContainerResultNode parent; */
     241             : NS_IMETHODIMP nsNavHistoryResultNode::GetParent(nsINavHistoryContainerResultNode * *aParent)
     242             : {
     243             :     return NS_ERROR_NOT_IMPLEMENTED;
     244             : }
     245             : 
     246             : /* readonly attribute nsINavHistoryResult parentResult; */
     247             : NS_IMETHODIMP nsNavHistoryResultNode::GetParentResult(nsINavHistoryResult * *aParentResult)
     248             : {
     249             :     return NS_ERROR_NOT_IMPLEMENTED;
     250             : }
     251             : 
     252             : /* readonly attribute AUTF8String uri; */
     253             : NS_IMETHODIMP nsNavHistoryResultNode::GetUri(nsACString & aUri)
     254             : {
     255             :     return NS_ERROR_NOT_IMPLEMENTED;
     256             : }
     257             : 
     258             : /* readonly attribute unsigned long type; */
     259             : NS_IMETHODIMP nsNavHistoryResultNode::GetType(uint32_t *aType)
     260             : {
     261             :     return NS_ERROR_NOT_IMPLEMENTED;
     262             : }
     263             : 
     264             : /* readonly attribute AUTF8String title; */
     265             : NS_IMETHODIMP nsNavHistoryResultNode::GetTitle(nsACString & aTitle)
     266             : {
     267             :     return NS_ERROR_NOT_IMPLEMENTED;
     268             : }
     269             : 
     270             : /* readonly attribute unsigned long accessCount; */
     271             : NS_IMETHODIMP nsNavHistoryResultNode::GetAccessCount(uint32_t *aAccessCount)
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : 
     276             : /* readonly attribute PRTime time; */
     277             : NS_IMETHODIMP nsNavHistoryResultNode::GetTime(PRTime *aTime)
     278             : {
     279             :     return NS_ERROR_NOT_IMPLEMENTED;
     280             : }
     281             : 
     282             : /* readonly attribute AUTF8String icon; */
     283             : NS_IMETHODIMP nsNavHistoryResultNode::GetIcon(nsACString & aIcon)
     284             : {
     285             :     return NS_ERROR_NOT_IMPLEMENTED;
     286             : }
     287             : 
     288             : /* readonly attribute long indentLevel; */
     289             : NS_IMETHODIMP nsNavHistoryResultNode::GetIndentLevel(int32_t *aIndentLevel)
     290             : {
     291             :     return NS_ERROR_NOT_IMPLEMENTED;
     292             : }
     293             : 
     294             : /* readonly attribute long bookmarkIndex; */
     295             : NS_IMETHODIMP nsNavHistoryResultNode::GetBookmarkIndex(int32_t *aBookmarkIndex)
     296             : {
     297             :     return NS_ERROR_NOT_IMPLEMENTED;
     298             : }
     299             : 
     300             : /* readonly attribute long long itemId; */
     301             : NS_IMETHODIMP nsNavHistoryResultNode::GetItemId(int64_t *aItemId)
     302             : {
     303             :     return NS_ERROR_NOT_IMPLEMENTED;
     304             : }
     305             : 
     306             : /* readonly attribute PRTime dateAdded; */
     307             : NS_IMETHODIMP nsNavHistoryResultNode::GetDateAdded(PRTime *aDateAdded)
     308             : {
     309             :     return NS_ERROR_NOT_IMPLEMENTED;
     310             : }
     311             : 
     312             : /* readonly attribute PRTime lastModified; */
     313             : NS_IMETHODIMP nsNavHistoryResultNode::GetLastModified(PRTime *aLastModified)
     314             : {
     315             :     return NS_ERROR_NOT_IMPLEMENTED;
     316             : }
     317             : 
     318             : /* readonly attribute AString tags; */
     319             : NS_IMETHODIMP nsNavHistoryResultNode::GetTags(nsAString & aTags)
     320             : {
     321             :     return NS_ERROR_NOT_IMPLEMENTED;
     322             : }
     323             : 
     324             : /* readonly attribute ACString pageGuid; */
     325             : NS_IMETHODIMP nsNavHistoryResultNode::GetPageGuid(nsACString & aPageGuid)
     326             : {
     327             :     return NS_ERROR_NOT_IMPLEMENTED;
     328             : }
     329             : 
     330             : /* readonly attribute ACString bookmarkGuid; */
     331             : NS_IMETHODIMP nsNavHistoryResultNode::GetBookmarkGuid(nsACString & aBookmarkGuid)
     332             : {
     333             :     return NS_ERROR_NOT_IMPLEMENTED;
     334             : }
     335             : 
     336             : /* readonly attribute long long visitId; */
     337             : NS_IMETHODIMP nsNavHistoryResultNode::GetVisitId(int64_t *aVisitId)
     338             : {
     339             :     return NS_ERROR_NOT_IMPLEMENTED;
     340             : }
     341             : 
     342             : /* readonly attribute long long fromVisitId; */
     343             : NS_IMETHODIMP nsNavHistoryResultNode::GetFromVisitId(int64_t *aFromVisitId)
     344             : {
     345             :     return NS_ERROR_NOT_IMPLEMENTED;
     346             : }
     347             : 
     348             : /* readonly attribute unsigned long visitType; */
     349             : NS_IMETHODIMP nsNavHistoryResultNode::GetVisitType(uint32_t *aVisitType)
     350             : {
     351             :     return NS_ERROR_NOT_IMPLEMENTED;
     352             : }
     353             : 
     354             : /* End of implementation class template. */
     355             : #endif
     356             : 
     357             : 
     358             : /* starting interface:    nsINavHistoryContainerResultNode */
     359             : #define NS_INAVHISTORYCONTAINERRESULTNODE_IID_STR "3e9cc95f-0d93-45f1-894f-908eeb9866d7"
     360             : 
     361             : #define NS_INAVHISTORYCONTAINERRESULTNODE_IID \
     362             :   {0x3e9cc95f, 0x0d93, 0x45f1, \
     363             :     { 0x89, 0x4f, 0x90, 0x8e, 0xeb, 0x98, 0x66, 0xd7 }}
     364             : 
     365           0 : class NS_NO_VTABLE nsINavHistoryContainerResultNode : public nsINavHistoryResultNode {
     366             :  public:
     367             : 
     368             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYCONTAINERRESULTNODE_IID)
     369             : 
     370             :   /* attribute boolean containerOpen; */
     371             :   NS_IMETHOD GetContainerOpen(bool *aContainerOpen) = 0;
     372             :   NS_IMETHOD SetContainerOpen(bool aContainerOpen) = 0;
     373             : 
     374             :   /* readonly attribute unsigned short state; */
     375             :   NS_IMETHOD GetState(uint16_t *aState) = 0;
     376             : 
     377             :   enum {
     378             :     STATE_CLOSED = 0U,
     379             :     STATE_LOADING = 1U,
     380             :     STATE_OPENED = 2U
     381             :   };
     382             : 
     383             :   /* readonly attribute boolean hasChildren; */
     384             :   NS_IMETHOD GetHasChildren(bool *aHasChildren) = 0;
     385             : 
     386             :   /* readonly attribute unsigned long childCount; */
     387             :   NS_IMETHOD GetChildCount(uint32_t *aChildCount) = 0;
     388             : 
     389             :   /* nsINavHistoryResultNode getChild (in unsigned long aIndex); */
     390             :   NS_IMETHOD GetChild(uint32_t aIndex, nsINavHistoryResultNode * *_retval) = 0;
     391             : 
     392             :   /* unsigned long getChildIndex (in nsINavHistoryResultNode aNode); */
     393             :   NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, uint32_t *_retval) = 0;
     394             : 
     395             : };
     396             : 
     397             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryContainerResultNode, NS_INAVHISTORYCONTAINERRESULTNODE_IID)
     398             : 
     399             : /* Use this macro when declaring classes that implement this interface. */
     400             : #define NS_DECL_NSINAVHISTORYCONTAINERRESULTNODE \
     401             :   NS_IMETHOD GetContainerOpen(bool *aContainerOpen) override; \
     402             :   NS_IMETHOD SetContainerOpen(bool aContainerOpen) override; \
     403             :   NS_IMETHOD GetState(uint16_t *aState) override; \
     404             :   NS_IMETHOD GetHasChildren(bool *aHasChildren) override; \
     405             :   NS_IMETHOD GetChildCount(uint32_t *aChildCount) override; \
     406             :   NS_IMETHOD GetChild(uint32_t aIndex, nsINavHistoryResultNode * *_retval) override; \
     407             :   NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, uint32_t *_retval) override; 
     408             : 
     409             : /* Use this macro when declaring the members of this interface when the
     410             :    class doesn't implement the interface. This is useful for forwarding. */
     411             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYCONTAINERRESULTNODE \
     412             :   nsresult GetContainerOpen(bool *aContainerOpen); \
     413             :   nsresult SetContainerOpen(bool aContainerOpen); \
     414             :   nsresult GetState(uint16_t *aState); \
     415             :   nsresult GetHasChildren(bool *aHasChildren); \
     416             :   nsresult GetChildCount(uint32_t *aChildCount); \
     417             :   nsresult GetChild(uint32_t aIndex, nsINavHistoryResultNode * *_retval); \
     418             :   nsresult GetChildIndex(nsINavHistoryResultNode *aNode, uint32_t *_retval); 
     419             : 
     420             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     421             : #define NS_FORWARD_NSINAVHISTORYCONTAINERRESULTNODE(_to) \
     422             :   NS_IMETHOD GetContainerOpen(bool *aContainerOpen) override { return _to GetContainerOpen(aContainerOpen); } \
     423             :   NS_IMETHOD SetContainerOpen(bool aContainerOpen) override { return _to SetContainerOpen(aContainerOpen); } \
     424             :   NS_IMETHOD GetState(uint16_t *aState) override { return _to GetState(aState); } \
     425             :   NS_IMETHOD GetHasChildren(bool *aHasChildren) override { return _to GetHasChildren(aHasChildren); } \
     426             :   NS_IMETHOD GetChildCount(uint32_t *aChildCount) override { return _to GetChildCount(aChildCount); } \
     427             :   NS_IMETHOD GetChild(uint32_t aIndex, nsINavHistoryResultNode * *_retval) override { return _to GetChild(aIndex, _retval); } \
     428             :   NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, uint32_t *_retval) override { return _to GetChildIndex(aNode, _retval); } 
     429             : 
     430             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     431             : #define NS_FORWARD_SAFE_NSINAVHISTORYCONTAINERRESULTNODE(_to) \
     432             :   NS_IMETHOD GetContainerOpen(bool *aContainerOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainerOpen(aContainerOpen); } \
     433             :   NS_IMETHOD SetContainerOpen(bool aContainerOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContainerOpen(aContainerOpen); } \
     434             :   NS_IMETHOD GetState(uint16_t *aState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetState(aState); } \
     435             :   NS_IMETHOD GetHasChildren(bool *aHasChildren) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasChildren(aHasChildren); } \
     436             :   NS_IMETHOD GetChildCount(uint32_t *aChildCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
     437             :   NS_IMETHOD GetChild(uint32_t aIndex, nsINavHistoryResultNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChild(aIndex, _retval); } \
     438             :   NS_IMETHOD GetChildIndex(nsINavHistoryResultNode *aNode, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildIndex(aNode, _retval); } 
     439             : 
     440             : #if 0
     441             : /* Use the code below as a template for the implementation class for this interface. */
     442             : 
     443             : /* Header file */
     444             : class nsNavHistoryContainerResultNode : public nsINavHistoryContainerResultNode
     445             : {
     446             : public:
     447             :   NS_DECL_ISUPPORTS
     448             :   NS_DECL_NSINAVHISTORYCONTAINERRESULTNODE
     449             : 
     450             :   nsNavHistoryContainerResultNode();
     451             : 
     452             : private:
     453             :   ~nsNavHistoryContainerResultNode();
     454             : 
     455             : protected:
     456             :   /* additional members */
     457             : };
     458             : 
     459             : /* Implementation file */
     460             : NS_IMPL_ISUPPORTS(nsNavHistoryContainerResultNode, nsINavHistoryContainerResultNode)
     461             : 
     462             : nsNavHistoryContainerResultNode::nsNavHistoryContainerResultNode()
     463             : {
     464             :   /* member initializers and constructor code */
     465             : }
     466             : 
     467             : nsNavHistoryContainerResultNode::~nsNavHistoryContainerResultNode()
     468             : {
     469             :   /* destructor code */
     470             : }
     471             : 
     472             : /* attribute boolean containerOpen; */
     473             : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetContainerOpen(bool *aContainerOpen)
     474             : {
     475             :     return NS_ERROR_NOT_IMPLEMENTED;
     476             : }
     477             : NS_IMETHODIMP nsNavHistoryContainerResultNode::SetContainerOpen(bool aContainerOpen)
     478             : {
     479             :     return NS_ERROR_NOT_IMPLEMENTED;
     480             : }
     481             : 
     482             : /* readonly attribute unsigned short state; */
     483             : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetState(uint16_t *aState)
     484             : {
     485             :     return NS_ERROR_NOT_IMPLEMENTED;
     486             : }
     487             : 
     488             : /* readonly attribute boolean hasChildren; */
     489             : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetHasChildren(bool *aHasChildren)
     490             : {
     491             :     return NS_ERROR_NOT_IMPLEMENTED;
     492             : }
     493             : 
     494             : /* readonly attribute unsigned long childCount; */
     495             : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChildCount(uint32_t *aChildCount)
     496             : {
     497             :     return NS_ERROR_NOT_IMPLEMENTED;
     498             : }
     499             : 
     500             : /* nsINavHistoryResultNode getChild (in unsigned long aIndex); */
     501             : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChild(uint32_t aIndex, nsINavHistoryResultNode * *_retval)
     502             : {
     503             :     return NS_ERROR_NOT_IMPLEMENTED;
     504             : }
     505             : 
     506             : /* unsigned long getChildIndex (in nsINavHistoryResultNode aNode); */
     507             : NS_IMETHODIMP nsNavHistoryContainerResultNode::GetChildIndex(nsINavHistoryResultNode *aNode, uint32_t *_retval)
     508             : {
     509             :     return NS_ERROR_NOT_IMPLEMENTED;
     510             : }
     511             : 
     512             : /* End of implementation class template. */
     513             : #endif
     514             : 
     515             : 
     516             : /* starting interface:    nsINavHistoryQueryResultNode */
     517             : #define NS_INAVHISTORYQUERYRESULTNODE_IID_STR "62817759-4fee-44a3-b58c-3e2f5afc9d0a"
     518             : 
     519             : #define NS_INAVHISTORYQUERYRESULTNODE_IID \
     520             :   {0x62817759, 0x4fee, 0x44a3, \
     521             :     { 0xb5, 0x8c, 0x3e, 0x2f, 0x5a, 0xfc, 0x9d, 0x0a }}
     522             : 
     523           0 : class NS_NO_VTABLE nsINavHistoryQueryResultNode : public nsINavHistoryContainerResultNode {
     524             :  public:
     525             : 
     526             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYQUERYRESULTNODE_IID)
     527             : 
     528             :   /* void getQueries ([optional] out unsigned long queryCount, [array, size_is (queryCount), retval] out nsINavHistoryQuery queries); */
     529             :   NS_IMETHOD GetQueries(uint32_t *queryCount, nsINavHistoryQuery * **queries) = 0;
     530             : 
     531             :   /* readonly attribute nsINavHistoryQueryOptions queryOptions; */
     532             :   NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) = 0;
     533             : 
     534             :   /* readonly attribute long long folderItemId; */
     535             :   NS_IMETHOD GetFolderItemId(int64_t *aFolderItemId) = 0;
     536             : 
     537             :   /* readonly attribute ACString targetFolderGuid; */
     538             :   NS_IMETHOD GetTargetFolderGuid(nsACString & aTargetFolderGuid) = 0;
     539             : 
     540             : };
     541             : 
     542             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryQueryResultNode, NS_INAVHISTORYQUERYRESULTNODE_IID)
     543             : 
     544             : /* Use this macro when declaring classes that implement this interface. */
     545             : #define NS_DECL_NSINAVHISTORYQUERYRESULTNODE \
     546             :   NS_IMETHOD GetQueries(uint32_t *queryCount, nsINavHistoryQuery * **queries) override; \
     547             :   NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) override; \
     548             :   NS_IMETHOD GetFolderItemId(int64_t *aFolderItemId) override; \
     549             :   NS_IMETHOD GetTargetFolderGuid(nsACString & aTargetFolderGuid) override; 
     550             : 
     551             : /* Use this macro when declaring the members of this interface when the
     552             :    class doesn't implement the interface. This is useful for forwarding. */
     553             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYQUERYRESULTNODE \
     554             :   nsresult GetQueries(uint32_t *queryCount, nsINavHistoryQuery * **queries); \
     555             :   nsresult GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions); \
     556             :   nsresult GetFolderItemId(int64_t *aFolderItemId); \
     557             :   nsresult GetTargetFolderGuid(nsACString & aTargetFolderGuid); 
     558             : 
     559             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     560             : #define NS_FORWARD_NSINAVHISTORYQUERYRESULTNODE(_to) \
     561             :   NS_IMETHOD GetQueries(uint32_t *queryCount, nsINavHistoryQuery * **queries) override { return _to GetQueries(queryCount, queries); } \
     562             :   NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) override { return _to GetQueryOptions(aQueryOptions); } \
     563             :   NS_IMETHOD GetFolderItemId(int64_t *aFolderItemId) override { return _to GetFolderItemId(aFolderItemId); } \
     564             :   NS_IMETHOD GetTargetFolderGuid(nsACString & aTargetFolderGuid) override { return _to GetTargetFolderGuid(aTargetFolderGuid); } 
     565             : 
     566             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     567             : #define NS_FORWARD_SAFE_NSINAVHISTORYQUERYRESULTNODE(_to) \
     568             :   NS_IMETHOD GetQueries(uint32_t *queryCount, nsINavHistoryQuery * **queries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueries(queryCount, queries); } \
     569             :   NS_IMETHOD GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueryOptions(aQueryOptions); } \
     570             :   NS_IMETHOD GetFolderItemId(int64_t *aFolderItemId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderItemId(aFolderItemId); } \
     571             :   NS_IMETHOD GetTargetFolderGuid(nsACString & aTargetFolderGuid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetFolderGuid(aTargetFolderGuid); } 
     572             : 
     573             : #if 0
     574             : /* Use the code below as a template for the implementation class for this interface. */
     575             : 
     576             : /* Header file */
     577             : class nsNavHistoryQueryResultNode : public nsINavHistoryQueryResultNode
     578             : {
     579             : public:
     580             :   NS_DECL_ISUPPORTS
     581             :   NS_DECL_NSINAVHISTORYQUERYRESULTNODE
     582             : 
     583             :   nsNavHistoryQueryResultNode();
     584             : 
     585             : private:
     586             :   ~nsNavHistoryQueryResultNode();
     587             : 
     588             : protected:
     589             :   /* additional members */
     590             : };
     591             : 
     592             : /* Implementation file */
     593             : NS_IMPL_ISUPPORTS(nsNavHistoryQueryResultNode, nsINavHistoryQueryResultNode)
     594             : 
     595             : nsNavHistoryQueryResultNode::nsNavHistoryQueryResultNode()
     596             : {
     597             :   /* member initializers and constructor code */
     598             : }
     599             : 
     600             : nsNavHistoryQueryResultNode::~nsNavHistoryQueryResultNode()
     601             : {
     602             :   /* destructor code */
     603             : }
     604             : 
     605             : /* void getQueries ([optional] out unsigned long queryCount, [array, size_is (queryCount), retval] out nsINavHistoryQuery queries); */
     606             : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetQueries(uint32_t *queryCount, nsINavHistoryQuery * **queries)
     607             : {
     608             :     return NS_ERROR_NOT_IMPLEMENTED;
     609             : }
     610             : 
     611             : /* readonly attribute nsINavHistoryQueryOptions queryOptions; */
     612             : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetQueryOptions(nsINavHistoryQueryOptions * *aQueryOptions)
     613             : {
     614             :     return NS_ERROR_NOT_IMPLEMENTED;
     615             : }
     616             : 
     617             : /* readonly attribute long long folderItemId; */
     618             : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetFolderItemId(int64_t *aFolderItemId)
     619             : {
     620             :     return NS_ERROR_NOT_IMPLEMENTED;
     621             : }
     622             : 
     623             : /* readonly attribute ACString targetFolderGuid; */
     624             : NS_IMETHODIMP nsNavHistoryQueryResultNode::GetTargetFolderGuid(nsACString & aTargetFolderGuid)
     625             : {
     626             :     return NS_ERROR_NOT_IMPLEMENTED;
     627             : }
     628             : 
     629             : /* End of implementation class template. */
     630             : #endif
     631             : 
     632             : 
     633             : /* starting interface:    nsINavHistoryResultObserver */
     634             : #define NS_INAVHISTORYRESULTOBSERVER_IID_STR "f62d8b6b-3c4e-4a9f-a897-db605d0b7a0f"
     635             : 
     636             : #define NS_INAVHISTORYRESULTOBSERVER_IID \
     637             :   {0xf62d8b6b, 0x3c4e, 0x4a9f, \
     638             :     { 0xa8, 0x97, 0xdb, 0x60, 0x5d, 0x0b, 0x7a, 0x0f }}
     639             : 
     640             : class NS_NO_VTABLE nsINavHistoryResultObserver : public nsISupports {
     641             :  public:
     642             : 
     643             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULTOBSERVER_IID)
     644             : 
     645             :   /* void nodeInserted (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex); */
     646             :   NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, uint32_t aNewIndex) = 0;
     647             : 
     648             :   /* void nodeRemoved (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aItem, in unsigned long aOldIndex); */
     649             :   NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, uint32_t aOldIndex) = 0;
     650             : 
     651             :   /* void nodeMoved (in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex); */
     652             :   NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, uint32_t aOldIndex, nsINavHistoryContainerResultNode *aNewParent, uint32_t aNewIndex) = 0;
     653             : 
     654             :   /* void nodeTitleChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle); */
     655             :   NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) = 0;
     656             : 
     657             :   /* void nodeURIChanged (in nsINavHistoryResultNode aNode, in AUTF8String aOldURI); */
     658             :   NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aOldURI) = 0;
     659             : 
     660             :   /* void nodeIconChanged (in nsINavHistoryResultNode aNode); */
     661             :   NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) = 0;
     662             : 
     663             :   /* void nodeHistoryDetailsChanged (in nsINavHistoryResultNode aNode, in PRTime aOldVisitDate, in unsigned long aOldAccessCount); */
     664             :   NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aOldVisitDate, uint32_t aOldAccessCount) = 0;
     665             : 
     666             :   /* void nodeTagsChanged (in nsINavHistoryResultNode aNode); */
     667             :   NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) = 0;
     668             : 
     669             :   /* void nodeKeywordChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword); */
     670             :   NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) = 0;
     671             : 
     672             :   /* void nodeAnnotationChanged (in nsINavHistoryResultNode aNode, in AUTF8String aAnnoName); */
     673             :   NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) = 0;
     674             : 
     675             :   /* void nodeDateAddedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
     676             :   NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) = 0;
     677             : 
     678             :   /* void nodeLastModifiedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
     679             :   NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) = 0;
     680             : 
     681             :   /* void containerStateChanged (in nsINavHistoryContainerResultNode aContainerNode, in unsigned long aOldState, in unsigned long aNewState); */
     682             :   NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, uint32_t aOldState, uint32_t aNewState) = 0;
     683             : 
     684             :   /* void invalidateContainer (in nsINavHistoryContainerResultNode aContainerNode); */
     685             :   NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) = 0;
     686             : 
     687             :   /* void sortingChanged (in unsigned short sortingMode); */
     688             :   NS_IMETHOD SortingChanged(uint16_t sortingMode) = 0;
     689             : 
     690             :   /* void batching (in boolean aToggleMode); */
     691             :   NS_IMETHOD Batching(bool aToggleMode) = 0;
     692             : 
     693             :   /* attribute nsINavHistoryResult result; */
     694             :   NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) = 0;
     695             :   NS_IMETHOD SetResult(nsINavHistoryResult *aResult) = 0;
     696             : 
     697             : };
     698             : 
     699             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResultObserver, NS_INAVHISTORYRESULTOBSERVER_IID)
     700             : 
     701             : /* Use this macro when declaring classes that implement this interface. */
     702             : #define NS_DECL_NSINAVHISTORYRESULTOBSERVER \
     703             :   NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, uint32_t aNewIndex) override; \
     704             :   NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, uint32_t aOldIndex) override; \
     705             :   NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, uint32_t aOldIndex, nsINavHistoryContainerResultNode *aNewParent, uint32_t aNewIndex) override; \
     706             :   NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) override; \
     707             :   NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aOldURI) override; \
     708             :   NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) override; \
     709             :   NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aOldVisitDate, uint32_t aOldAccessCount) override; \
     710             :   NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) override; \
     711             :   NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) override; \
     712             :   NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) override; \
     713             :   NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) override; \
     714             :   NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) override; \
     715             :   NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, uint32_t aOldState, uint32_t aNewState) override; \
     716             :   NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) override; \
     717             :   NS_IMETHOD SortingChanged(uint16_t sortingMode) override; \
     718             :   NS_IMETHOD Batching(bool aToggleMode) override; \
     719             :   NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) override; \
     720             :   NS_IMETHOD SetResult(nsINavHistoryResult *aResult) override; 
     721             : 
     722             : /* Use this macro when declaring the members of this interface when the
     723             :    class doesn't implement the interface. This is useful for forwarding. */
     724             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYRESULTOBSERVER \
     725             :   nsresult NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, uint32_t aNewIndex); \
     726             :   nsresult NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, uint32_t aOldIndex); \
     727             :   nsresult NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, uint32_t aOldIndex, nsINavHistoryContainerResultNode *aNewParent, uint32_t aNewIndex); \
     728             :   nsresult NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle); \
     729             :   nsresult NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aOldURI); \
     730             :   nsresult NodeIconChanged(nsINavHistoryResultNode *aNode); \
     731             :   nsresult NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aOldVisitDate, uint32_t aOldAccessCount); \
     732             :   nsresult NodeTagsChanged(nsINavHistoryResultNode *aNode); \
     733             :   nsresult NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword); \
     734             :   nsresult NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName); \
     735             :   nsresult NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue); \
     736             :   nsresult NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue); \
     737             :   nsresult ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, uint32_t aOldState, uint32_t aNewState); \
     738             :   nsresult InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode); \
     739             :   nsresult SortingChanged(uint16_t sortingMode); \
     740             :   nsresult Batching(bool aToggleMode); \
     741             :   nsresult GetResult(nsINavHistoryResult * *aResult); \
     742             :   nsresult SetResult(nsINavHistoryResult *aResult); 
     743             : 
     744             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     745             : #define NS_FORWARD_NSINAVHISTORYRESULTOBSERVER(_to) \
     746             :   NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, uint32_t aNewIndex) override { return _to NodeInserted(aParent, aNode, aNewIndex); } \
     747             :   NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, uint32_t aOldIndex) override { return _to NodeRemoved(aParent, aItem, aOldIndex); } \
     748             :   NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, uint32_t aOldIndex, nsINavHistoryContainerResultNode *aNewParent, uint32_t aNewIndex) override { return _to NodeMoved(aNode, aOldParent, aOldIndex, aNewParent, aNewIndex); } \
     749             :   NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) override { return _to NodeTitleChanged(aNode, aNewTitle); } \
     750             :   NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aOldURI) override { return _to NodeURIChanged(aNode, aOldURI); } \
     751             :   NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) override { return _to NodeIconChanged(aNode); } \
     752             :   NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aOldVisitDate, uint32_t aOldAccessCount) override { return _to NodeHistoryDetailsChanged(aNode, aOldVisitDate, aOldAccessCount); } \
     753             :   NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) override { return _to NodeTagsChanged(aNode); } \
     754             :   NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) override { return _to NodeKeywordChanged(aNode, aNewKeyword); } \
     755             :   NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) override { return _to NodeAnnotationChanged(aNode, aAnnoName); } \
     756             :   NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) override { return _to NodeDateAddedChanged(aNode, aNewValue); } \
     757             :   NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) override { return _to NodeLastModifiedChanged(aNode, aNewValue); } \
     758             :   NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, uint32_t aOldState, uint32_t aNewState) override { return _to ContainerStateChanged(aContainerNode, aOldState, aNewState); } \
     759             :   NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) override { return _to InvalidateContainer(aContainerNode); } \
     760             :   NS_IMETHOD SortingChanged(uint16_t sortingMode) override { return _to SortingChanged(sortingMode); } \
     761             :   NS_IMETHOD Batching(bool aToggleMode) override { return _to Batching(aToggleMode); } \
     762             :   NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) override { return _to GetResult(aResult); } \
     763             :   NS_IMETHOD SetResult(nsINavHistoryResult *aResult) override { return _to SetResult(aResult); } 
     764             : 
     765             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     766             : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULTOBSERVER(_to) \
     767             :   NS_IMETHOD NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, uint32_t aNewIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeInserted(aParent, aNode, aNewIndex); } \
     768             :   NS_IMETHOD NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, uint32_t aOldIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeRemoved(aParent, aItem, aOldIndex); } \
     769             :   NS_IMETHOD NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, uint32_t aOldIndex, nsINavHistoryContainerResultNode *aNewParent, uint32_t aNewIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeMoved(aNode, aOldParent, aOldIndex, aNewParent, aNewIndex); } \
     770             :   NS_IMETHOD NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeTitleChanged(aNode, aNewTitle); } \
     771             :   NS_IMETHOD NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aOldURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeURIChanged(aNode, aOldURI); } \
     772             :   NS_IMETHOD NodeIconChanged(nsINavHistoryResultNode *aNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeIconChanged(aNode); } \
     773             :   NS_IMETHOD NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aOldVisitDate, uint32_t aOldAccessCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeHistoryDetailsChanged(aNode, aOldVisitDate, aOldAccessCount); } \
     774             :   NS_IMETHOD NodeTagsChanged(nsINavHistoryResultNode *aNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeTagsChanged(aNode); } \
     775             :   NS_IMETHOD NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeKeywordChanged(aNode, aNewKeyword); } \
     776             :   NS_IMETHOD NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeAnnotationChanged(aNode, aAnnoName); } \
     777             :   NS_IMETHOD NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeDateAddedChanged(aNode, aNewValue); } \
     778             :   NS_IMETHOD NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeLastModifiedChanged(aNode, aNewValue); } \
     779             :   NS_IMETHOD ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, uint32_t aOldState, uint32_t aNewState) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainerStateChanged(aContainerNode, aOldState, aNewState); } \
     780             :   NS_IMETHOD InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateContainer(aContainerNode); } \
     781             :   NS_IMETHOD SortingChanged(uint16_t sortingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SortingChanged(sortingMode); } \
     782             :   NS_IMETHOD Batching(bool aToggleMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Batching(aToggleMode); } \
     783             :   NS_IMETHOD GetResult(nsINavHistoryResult * *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
     784             :   NS_IMETHOD SetResult(nsINavHistoryResult *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResult(aResult); } 
     785             : 
     786             : #if 0
     787             : /* Use the code below as a template for the implementation class for this interface. */
     788             : 
     789             : /* Header file */
     790             : class nsNavHistoryResultObserver : public nsINavHistoryResultObserver
     791             : {
     792             : public:
     793             :   NS_DECL_ISUPPORTS
     794             :   NS_DECL_NSINAVHISTORYRESULTOBSERVER
     795             : 
     796             :   nsNavHistoryResultObserver();
     797             : 
     798             : private:
     799             :   ~nsNavHistoryResultObserver();
     800             : 
     801             : protected:
     802             :   /* additional members */
     803             : };
     804             : 
     805             : /* Implementation file */
     806             : NS_IMPL_ISUPPORTS(nsNavHistoryResultObserver, nsINavHistoryResultObserver)
     807             : 
     808             : nsNavHistoryResultObserver::nsNavHistoryResultObserver()
     809             : {
     810             :   /* member initializers and constructor code */
     811             : }
     812             : 
     813             : nsNavHistoryResultObserver::~nsNavHistoryResultObserver()
     814             : {
     815             :   /* destructor code */
     816             : }
     817             : 
     818             : /* void nodeInserted (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex); */
     819             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeInserted(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aNode, uint32_t aNewIndex)
     820             : {
     821             :     return NS_ERROR_NOT_IMPLEMENTED;
     822             : }
     823             : 
     824             : /* void nodeRemoved (in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aItem, in unsigned long aOldIndex); */
     825             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeRemoved(nsINavHistoryContainerResultNode *aParent, nsINavHistoryResultNode *aItem, uint32_t aOldIndex)
     826             : {
     827             :     return NS_ERROR_NOT_IMPLEMENTED;
     828             : }
     829             : 
     830             : /* void nodeMoved (in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex); */
     831             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeMoved(nsINavHistoryResultNode *aNode, nsINavHistoryContainerResultNode *aOldParent, uint32_t aOldIndex, nsINavHistoryContainerResultNode *aNewParent, uint32_t aNewIndex)
     832             : {
     833             :     return NS_ERROR_NOT_IMPLEMENTED;
     834             : }
     835             : 
     836             : /* void nodeTitleChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle); */
     837             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeTitleChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewTitle)
     838             : {
     839             :     return NS_ERROR_NOT_IMPLEMENTED;
     840             : }
     841             : 
     842             : /* void nodeURIChanged (in nsINavHistoryResultNode aNode, in AUTF8String aOldURI); */
     843             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeURIChanged(nsINavHistoryResultNode *aNode, const nsACString & aOldURI)
     844             : {
     845             :     return NS_ERROR_NOT_IMPLEMENTED;
     846             : }
     847             : 
     848             : /* void nodeIconChanged (in nsINavHistoryResultNode aNode); */
     849             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeIconChanged(nsINavHistoryResultNode *aNode)
     850             : {
     851             :     return NS_ERROR_NOT_IMPLEMENTED;
     852             : }
     853             : 
     854             : /* void nodeHistoryDetailsChanged (in nsINavHistoryResultNode aNode, in PRTime aOldVisitDate, in unsigned long aOldAccessCount); */
     855             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeHistoryDetailsChanged(nsINavHistoryResultNode *aNode, PRTime aOldVisitDate, uint32_t aOldAccessCount)
     856             : {
     857             :     return NS_ERROR_NOT_IMPLEMENTED;
     858             : }
     859             : 
     860             : /* void nodeTagsChanged (in nsINavHistoryResultNode aNode); */
     861             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeTagsChanged(nsINavHistoryResultNode *aNode)
     862             : {
     863             :     return NS_ERROR_NOT_IMPLEMENTED;
     864             : }
     865             : 
     866             : /* void nodeKeywordChanged (in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword); */
     867             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeKeywordChanged(nsINavHistoryResultNode *aNode, const nsACString & aNewKeyword)
     868             : {
     869             :     return NS_ERROR_NOT_IMPLEMENTED;
     870             : }
     871             : 
     872             : /* void nodeAnnotationChanged (in nsINavHistoryResultNode aNode, in AUTF8String aAnnoName); */
     873             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeAnnotationChanged(nsINavHistoryResultNode *aNode, const nsACString & aAnnoName)
     874             : {
     875             :     return NS_ERROR_NOT_IMPLEMENTED;
     876             : }
     877             : 
     878             : /* void nodeDateAddedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
     879             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeDateAddedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue)
     880             : {
     881             :     return NS_ERROR_NOT_IMPLEMENTED;
     882             : }
     883             : 
     884             : /* void nodeLastModifiedChanged (in nsINavHistoryResultNode aNode, in PRTime aNewValue); */
     885             : NS_IMETHODIMP nsNavHistoryResultObserver::NodeLastModifiedChanged(nsINavHistoryResultNode *aNode, PRTime aNewValue)
     886             : {
     887             :     return NS_ERROR_NOT_IMPLEMENTED;
     888             : }
     889             : 
     890             : /* void containerStateChanged (in nsINavHistoryContainerResultNode aContainerNode, in unsigned long aOldState, in unsigned long aNewState); */
     891             : NS_IMETHODIMP nsNavHistoryResultObserver::ContainerStateChanged(nsINavHistoryContainerResultNode *aContainerNode, uint32_t aOldState, uint32_t aNewState)
     892             : {
     893             :     return NS_ERROR_NOT_IMPLEMENTED;
     894             : }
     895             : 
     896             : /* void invalidateContainer (in nsINavHistoryContainerResultNode aContainerNode); */
     897             : NS_IMETHODIMP nsNavHistoryResultObserver::InvalidateContainer(nsINavHistoryContainerResultNode *aContainerNode)
     898             : {
     899             :     return NS_ERROR_NOT_IMPLEMENTED;
     900             : }
     901             : 
     902             : /* void sortingChanged (in unsigned short sortingMode); */
     903             : NS_IMETHODIMP nsNavHistoryResultObserver::SortingChanged(uint16_t sortingMode)
     904             : {
     905             :     return NS_ERROR_NOT_IMPLEMENTED;
     906             : }
     907             : 
     908             : /* void batching (in boolean aToggleMode); */
     909             : NS_IMETHODIMP nsNavHistoryResultObserver::Batching(bool aToggleMode)
     910             : {
     911             :     return NS_ERROR_NOT_IMPLEMENTED;
     912             : }
     913             : 
     914             : /* attribute nsINavHistoryResult result; */
     915             : NS_IMETHODIMP nsNavHistoryResultObserver::GetResult(nsINavHistoryResult * *aResult)
     916             : {
     917             :     return NS_ERROR_NOT_IMPLEMENTED;
     918             : }
     919             : NS_IMETHODIMP nsNavHistoryResultObserver::SetResult(nsINavHistoryResult *aResult)
     920             : {
     921             :     return NS_ERROR_NOT_IMPLEMENTED;
     922             : }
     923             : 
     924             : /* End of implementation class template. */
     925             : #endif
     926             : 
     927             : 
     928             : /* starting interface:    nsINavHistoryResultTreeViewer */
     929             : #define NS_INAVHISTORYRESULTTREEVIEWER_IID_STR "f8b518c0-1faf-11df-8a39-0800200c9a66"
     930             : 
     931             : #define NS_INAVHISTORYRESULTTREEVIEWER_IID \
     932             :   {0xf8b518c0, 0x1faf, 0x11df, \
     933             :     { 0x8a, 0x39, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
     934             : 
     935             : class NS_NO_VTABLE nsINavHistoryResultTreeViewer : public nsINavHistoryResultObserver {
     936             :  public:
     937             : 
     938             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULTTREEVIEWER_IID)
     939             : 
     940             :   /* nsINavHistoryResultNode nodeForTreeIndex (in unsigned long aIndex); */
     941             :   NS_IMETHOD NodeForTreeIndex(uint32_t aIndex, nsINavHistoryResultNode * *_retval) = 0;
     942             : 
     943             :   enum {
     944             :     INDEX_INVISIBLE = 4294967295U
     945             :   };
     946             : 
     947             :   /* unsigned long treeIndexForNode (in nsINavHistoryResultNode aNode); */
     948             :   NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, uint32_t *_retval) = 0;
     949             : 
     950             : };
     951             : 
     952             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResultTreeViewer, NS_INAVHISTORYRESULTTREEVIEWER_IID)
     953             : 
     954             : /* Use this macro when declaring classes that implement this interface. */
     955             : #define NS_DECL_NSINAVHISTORYRESULTTREEVIEWER \
     956             :   NS_IMETHOD NodeForTreeIndex(uint32_t aIndex, nsINavHistoryResultNode * *_retval) override; \
     957             :   NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, uint32_t *_retval) override; 
     958             : 
     959             : /* Use this macro when declaring the members of this interface when the
     960             :    class doesn't implement the interface. This is useful for forwarding. */
     961             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYRESULTTREEVIEWER \
     962             :   nsresult NodeForTreeIndex(uint32_t aIndex, nsINavHistoryResultNode * *_retval); \
     963             :   nsresult TreeIndexForNode(nsINavHistoryResultNode *aNode, uint32_t *_retval); 
     964             : 
     965             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     966             : #define NS_FORWARD_NSINAVHISTORYRESULTTREEVIEWER(_to) \
     967             :   NS_IMETHOD NodeForTreeIndex(uint32_t aIndex, nsINavHistoryResultNode * *_retval) override { return _to NodeForTreeIndex(aIndex, _retval); } \
     968             :   NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, uint32_t *_retval) override { return _to TreeIndexForNode(aNode, _retval); } 
     969             : 
     970             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     971             : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULTTREEVIEWER(_to) \
     972             :   NS_IMETHOD NodeForTreeIndex(uint32_t aIndex, nsINavHistoryResultNode * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodeForTreeIndex(aIndex, _retval); } \
     973             :   NS_IMETHOD TreeIndexForNode(nsINavHistoryResultNode *aNode, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TreeIndexForNode(aNode, _retval); } 
     974             : 
     975             : #if 0
     976             : /* Use the code below as a template for the implementation class for this interface. */
     977             : 
     978             : /* Header file */
     979             : class nsNavHistoryResultTreeViewer : public nsINavHistoryResultTreeViewer
     980             : {
     981             : public:
     982             :   NS_DECL_ISUPPORTS
     983             :   NS_DECL_NSINAVHISTORYRESULTTREEVIEWER
     984             : 
     985             :   nsNavHistoryResultTreeViewer();
     986             : 
     987             : private:
     988             :   ~nsNavHistoryResultTreeViewer();
     989             : 
     990             : protected:
     991             :   /* additional members */
     992             : };
     993             : 
     994             : /* Implementation file */
     995             : NS_IMPL_ISUPPORTS(nsNavHistoryResultTreeViewer, nsINavHistoryResultTreeViewer)
     996             : 
     997             : nsNavHistoryResultTreeViewer::nsNavHistoryResultTreeViewer()
     998             : {
     999             :   /* member initializers and constructor code */
    1000             : }
    1001             : 
    1002             : nsNavHistoryResultTreeViewer::~nsNavHistoryResultTreeViewer()
    1003             : {
    1004             :   /* destructor code */
    1005             : }
    1006             : 
    1007             : /* nsINavHistoryResultNode nodeForTreeIndex (in unsigned long aIndex); */
    1008             : NS_IMETHODIMP nsNavHistoryResultTreeViewer::NodeForTreeIndex(uint32_t aIndex, nsINavHistoryResultNode * *_retval)
    1009             : {
    1010             :     return NS_ERROR_NOT_IMPLEMENTED;
    1011             : }
    1012             : 
    1013             : /* unsigned long treeIndexForNode (in nsINavHistoryResultNode aNode); */
    1014             : NS_IMETHODIMP nsNavHistoryResultTreeViewer::TreeIndexForNode(nsINavHistoryResultNode *aNode, uint32_t *_retval)
    1015             : {
    1016             :     return NS_ERROR_NOT_IMPLEMENTED;
    1017             : }
    1018             : 
    1019             : /* End of implementation class template. */
    1020             : #endif
    1021             : 
    1022             : 
    1023             : /* starting interface:    nsINavHistoryResult */
    1024             : #define NS_INAVHISTORYRESULT_IID_STR "c2229ce3-2159-4001-859c-7013c52f7619"
    1025             : 
    1026             : #define NS_INAVHISTORYRESULT_IID \
    1027             :   {0xc2229ce3, 0x2159, 0x4001, \
    1028             :     { 0x85, 0x9c, 0x70, 0x13, 0xc5, 0x2f, 0x76, 0x19 }}
    1029             : 
    1030           0 : class NS_NO_VTABLE nsINavHistoryResult : public nsISupports {
    1031             :  public:
    1032             : 
    1033             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYRESULT_IID)
    1034             : 
    1035             :   /* attribute unsigned short sortingMode; */
    1036             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) = 0;
    1037             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) = 0;
    1038             : 
    1039             :   /* attribute AUTF8String sortingAnnotation; */
    1040             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) = 0;
    1041             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) = 0;
    1042             : 
    1043             :   /* attribute boolean suppressNotifications; */
    1044             :   NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) = 0;
    1045             :   NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) = 0;
    1046             : 
    1047             :   /* void addObserver (in nsINavHistoryResultObserver aObserver, [optional] in boolean aOwnsWeak); */
    1048             :   NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) = 0;
    1049             : 
    1050             :   /* void removeObserver (in nsINavHistoryResultObserver aObserver); */
    1051             :   NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) = 0;
    1052             : 
    1053             :   /* readonly attribute nsINavHistoryContainerResultNode root; */
    1054             :   NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) = 0;
    1055             : 
    1056             : };
    1057             : 
    1058             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryResult, NS_INAVHISTORYRESULT_IID)
    1059             : 
    1060             : /* Use this macro when declaring classes that implement this interface. */
    1061             : #define NS_DECL_NSINAVHISTORYRESULT \
    1062             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) override; \
    1063             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) override; \
    1064             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) override; \
    1065             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) override; \
    1066             :   NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) override; \
    1067             :   NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) override; \
    1068             :   NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) override; \
    1069             :   NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) override; \
    1070             :   NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) override; 
    1071             : 
    1072             : /* Use this macro when declaring the members of this interface when the
    1073             :    class doesn't implement the interface. This is useful for forwarding. */
    1074             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYRESULT \
    1075             :   nsresult GetSortingMode(uint16_t *aSortingMode); \
    1076             :   nsresult SetSortingMode(uint16_t aSortingMode); \
    1077             :   nsresult GetSortingAnnotation(nsACString & aSortingAnnotation); \
    1078             :   nsresult SetSortingAnnotation(const nsACString & aSortingAnnotation); \
    1079             :   nsresult GetSuppressNotifications(bool *aSuppressNotifications); \
    1080             :   nsresult SetSuppressNotifications(bool aSuppressNotifications); \
    1081             :   nsresult AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak); \
    1082             :   nsresult RemoveObserver(nsINavHistoryResultObserver *aObserver); \
    1083             :   nsresult GetRoot(nsINavHistoryContainerResultNode * *aRoot); 
    1084             : 
    1085             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1086             : #define NS_FORWARD_NSINAVHISTORYRESULT(_to) \
    1087             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) override { return _to GetSortingMode(aSortingMode); } \
    1088             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) override { return _to SetSortingMode(aSortingMode); } \
    1089             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) override { return _to GetSortingAnnotation(aSortingAnnotation); } \
    1090             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) override { return _to SetSortingAnnotation(aSortingAnnotation); } \
    1091             :   NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) override { return _to GetSuppressNotifications(aSuppressNotifications); } \
    1092             :   NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) override { return _to SetSuppressNotifications(aSuppressNotifications); } \
    1093             :   NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) override { return _to AddObserver(aObserver, aOwnsWeak); } \
    1094             :   NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) override { return _to RemoveObserver(aObserver); } \
    1095             :   NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) override { return _to GetRoot(aRoot); } 
    1096             : 
    1097             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1098             : #define NS_FORWARD_SAFE_NSINAVHISTORYRESULT(_to) \
    1099             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingMode(aSortingMode); } \
    1100             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingMode(aSortingMode); } \
    1101             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingAnnotation(aSortingAnnotation); } \
    1102             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingAnnotation(aSortingAnnotation); } \
    1103             :   NS_IMETHOD GetSuppressNotifications(bool *aSuppressNotifications) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressNotifications(aSuppressNotifications); } \
    1104             :   NS_IMETHOD SetSuppressNotifications(bool aSuppressNotifications) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressNotifications(aSuppressNotifications); } \
    1105             :   NS_IMETHOD AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver, aOwnsWeak); } \
    1106             :   NS_IMETHOD RemoveObserver(nsINavHistoryResultObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } \
    1107             :   NS_IMETHOD GetRoot(nsINavHistoryContainerResultNode * *aRoot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } 
    1108             : 
    1109             : #if 0
    1110             : /* Use the code below as a template for the implementation class for this interface. */
    1111             : 
    1112             : /* Header file */
    1113             : class nsNavHistoryResult : public nsINavHistoryResult
    1114             : {
    1115             : public:
    1116             :   NS_DECL_ISUPPORTS
    1117             :   NS_DECL_NSINAVHISTORYRESULT
    1118             : 
    1119             :   nsNavHistoryResult();
    1120             : 
    1121             : private:
    1122             :   ~nsNavHistoryResult();
    1123             : 
    1124             : protected:
    1125             :   /* additional members */
    1126             : };
    1127             : 
    1128             : /* Implementation file */
    1129             : NS_IMPL_ISUPPORTS(nsNavHistoryResult, nsINavHistoryResult)
    1130             : 
    1131             : nsNavHistoryResult::nsNavHistoryResult()
    1132             : {
    1133             :   /* member initializers and constructor code */
    1134             : }
    1135             : 
    1136             : nsNavHistoryResult::~nsNavHistoryResult()
    1137             : {
    1138             :   /* destructor code */
    1139             : }
    1140             : 
    1141             : /* attribute unsigned short sortingMode; */
    1142             : NS_IMETHODIMP nsNavHistoryResult::GetSortingMode(uint16_t *aSortingMode)
    1143             : {
    1144             :     return NS_ERROR_NOT_IMPLEMENTED;
    1145             : }
    1146             : NS_IMETHODIMP nsNavHistoryResult::SetSortingMode(uint16_t aSortingMode)
    1147             : {
    1148             :     return NS_ERROR_NOT_IMPLEMENTED;
    1149             : }
    1150             : 
    1151             : /* attribute AUTF8String sortingAnnotation; */
    1152             : NS_IMETHODIMP nsNavHistoryResult::GetSortingAnnotation(nsACString & aSortingAnnotation)
    1153             : {
    1154             :     return NS_ERROR_NOT_IMPLEMENTED;
    1155             : }
    1156             : NS_IMETHODIMP nsNavHistoryResult::SetSortingAnnotation(const nsACString & aSortingAnnotation)
    1157             : {
    1158             :     return NS_ERROR_NOT_IMPLEMENTED;
    1159             : }
    1160             : 
    1161             : /* attribute boolean suppressNotifications; */
    1162             : NS_IMETHODIMP nsNavHistoryResult::GetSuppressNotifications(bool *aSuppressNotifications)
    1163             : {
    1164             :     return NS_ERROR_NOT_IMPLEMENTED;
    1165             : }
    1166             : NS_IMETHODIMP nsNavHistoryResult::SetSuppressNotifications(bool aSuppressNotifications)
    1167             : {
    1168             :     return NS_ERROR_NOT_IMPLEMENTED;
    1169             : }
    1170             : 
    1171             : /* void addObserver (in nsINavHistoryResultObserver aObserver, [optional] in boolean aOwnsWeak); */
    1172             : NS_IMETHODIMP nsNavHistoryResult::AddObserver(nsINavHistoryResultObserver *aObserver, bool aOwnsWeak)
    1173             : {
    1174             :     return NS_ERROR_NOT_IMPLEMENTED;
    1175             : }
    1176             : 
    1177             : /* void removeObserver (in nsINavHistoryResultObserver aObserver); */
    1178             : NS_IMETHODIMP nsNavHistoryResult::RemoveObserver(nsINavHistoryResultObserver *aObserver)
    1179             : {
    1180             :     return NS_ERROR_NOT_IMPLEMENTED;
    1181             : }
    1182             : 
    1183             : /* readonly attribute nsINavHistoryContainerResultNode root; */
    1184             : NS_IMETHODIMP nsNavHistoryResult::GetRoot(nsINavHistoryContainerResultNode * *aRoot)
    1185             : {
    1186             :     return NS_ERROR_NOT_IMPLEMENTED;
    1187             : }
    1188             : 
    1189             : /* End of implementation class template. */
    1190             : #endif
    1191             : 
    1192             : 
    1193             : /* starting interface:    nsINavHistoryObserver */
    1194             : #define NS_INAVHISTORYOBSERVER_IID_STR "0f0f45b0-13a1-44ae-a0ab-c6046ec6d4da"
    1195             : 
    1196             : #define NS_INAVHISTORYOBSERVER_IID \
    1197             :   {0x0f0f45b0, 0x13a1, 0x44ae, \
    1198             :     { 0xa0, 0xab, 0xc6, 0x04, 0x6e, 0xc6, 0xd4, 0xda }}
    1199             : 
    1200           1 : class NS_NO_VTABLE nsINavHistoryObserver : public nsISupports {
    1201             :  public:
    1202             : 
    1203             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYOBSERVER_IID)
    1204             : 
    1205             :   /* void onBeginUpdateBatch (); */
    1206             :   NS_IMETHOD OnBeginUpdateBatch(void) = 0;
    1207             : 
    1208             :   /* void onEndUpdateBatch (); */
    1209             :   NS_IMETHOD OnEndUpdateBatch(void) = 0;
    1210             : 
    1211             :   /* void onVisit (in nsIURI aURI, in long long aVisitId, in PRTime aTime, in long long aSessionId, in long long aReferrerVisitId, in unsigned long aTransitionType, in ACString aGuid, in boolean aHidden, in unsigned long aVisitCount, in unsigned long aTyped, in AString aLastKnownTitle); */
    1212             :   NS_IMETHOD OnVisit(nsIURI *aURI, int64_t aVisitId, PRTime aTime, int64_t aSessionId, int64_t aReferrerVisitId, uint32_t aTransitionType, const nsACString & aGuid, bool aHidden, uint32_t aVisitCount, uint32_t aTyped, const nsAString & aLastKnownTitle) = 0;
    1213             : 
    1214             :   /* void onTitleChanged (in nsIURI aURI, in AString aPageTitle, in ACString aGUID); */
    1215             :   NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) = 0;
    1216             : 
    1217             :   /* void onFrecencyChanged (in nsIURI aURI, in long aNewFrecency, in ACString aGUID, in boolean aHidden, in PRTime aVisitDate); */
    1218             :   NS_IMETHOD OnFrecencyChanged(nsIURI *aURI, int32_t aNewFrecency, const nsACString & aGUID, bool aHidden, PRTime aVisitDate) = 0;
    1219             : 
    1220             :   /* void onManyFrecenciesChanged (); */
    1221             :   NS_IMETHOD OnManyFrecenciesChanged(void) = 0;
    1222             : 
    1223             :   enum {
    1224             :     REASON_DELETED = 0U,
    1225             :     REASON_EXPIRED = 1U
    1226             :   };
    1227             : 
    1228             :   /* void onDeleteURI (in nsIURI aURI, in ACString aGUID, in unsigned short aReason); */
    1229             :   NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, uint16_t aReason) = 0;
    1230             : 
    1231             :   /* void onClearHistory (); */
    1232             :   NS_IMETHOD OnClearHistory(void) = 0;
    1233             : 
    1234             :   enum {
    1235             :     ATTRIBUTE_FAVICON = 3U
    1236             :   };
    1237             : 
    1238             :   /* void onPageChanged (in nsIURI aURI, in unsigned long aChangedAttribute, in AString aNewValue, in ACString aGUID); */
    1239             :   NS_IMETHOD OnPageChanged(nsIURI *aURI, uint32_t aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) = 0;
    1240             : 
    1241             :   /* void onDeleteVisits (in nsIURI aURI, in PRTime aVisitTime, in ACString aGUID, in unsigned short aReason, in unsigned long aTransitionType); */
    1242             :   NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, uint16_t aReason, uint32_t aTransitionType) = 0;
    1243             : 
    1244             : };
    1245             : 
    1246             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryObserver, NS_INAVHISTORYOBSERVER_IID)
    1247             : 
    1248             : /* Use this macro when declaring classes that implement this interface. */
    1249             : #define NS_DECL_NSINAVHISTORYOBSERVER \
    1250             :   NS_IMETHOD OnBeginUpdateBatch(void) override; \
    1251             :   NS_IMETHOD OnEndUpdateBatch(void) override; \
    1252             :   NS_IMETHOD OnVisit(nsIURI *aURI, int64_t aVisitId, PRTime aTime, int64_t aSessionId, int64_t aReferrerVisitId, uint32_t aTransitionType, const nsACString & aGuid, bool aHidden, uint32_t aVisitCount, uint32_t aTyped, const nsAString & aLastKnownTitle) override; \
    1253             :   NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) override; \
    1254             :   NS_IMETHOD OnFrecencyChanged(nsIURI *aURI, int32_t aNewFrecency, const nsACString & aGUID, bool aHidden, PRTime aVisitDate) override; \
    1255             :   NS_IMETHOD OnManyFrecenciesChanged(void) override; \
    1256             :   NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, uint16_t aReason) override; \
    1257             :   NS_IMETHOD OnClearHistory(void) override; \
    1258             :   NS_IMETHOD OnPageChanged(nsIURI *aURI, uint32_t aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) override; \
    1259             :   NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, uint16_t aReason, uint32_t aTransitionType) override; 
    1260             : 
    1261             : /* Use this macro when declaring the members of this interface when the
    1262             :    class doesn't implement the interface. This is useful for forwarding. */
    1263             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYOBSERVER \
    1264             :   nsresult OnBeginUpdateBatch(void); \
    1265             :   nsresult OnEndUpdateBatch(void); \
    1266             :   nsresult OnVisit(nsIURI *aURI, int64_t aVisitId, PRTime aTime, int64_t aSessionId, int64_t aReferrerVisitId, uint32_t aTransitionType, const nsACString & aGuid, bool aHidden, uint32_t aVisitCount, uint32_t aTyped, const nsAString & aLastKnownTitle); \
    1267             :   nsresult OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID); \
    1268             :   nsresult OnFrecencyChanged(nsIURI *aURI, int32_t aNewFrecency, const nsACString & aGUID, bool aHidden, PRTime aVisitDate); \
    1269             :   nsresult OnManyFrecenciesChanged(void); \
    1270             :   nsresult OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, uint16_t aReason); \
    1271             :   nsresult OnClearHistory(void); \
    1272             :   nsresult OnPageChanged(nsIURI *aURI, uint32_t aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID); \
    1273             :   nsresult OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, uint16_t aReason, uint32_t aTransitionType); 
    1274             : 
    1275             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1276             : #define NS_FORWARD_NSINAVHISTORYOBSERVER(_to) \
    1277             :   NS_IMETHOD OnBeginUpdateBatch(void) override { return _to OnBeginUpdateBatch(); } \
    1278             :   NS_IMETHOD OnEndUpdateBatch(void) override { return _to OnEndUpdateBatch(); } \
    1279             :   NS_IMETHOD OnVisit(nsIURI *aURI, int64_t aVisitId, PRTime aTime, int64_t aSessionId, int64_t aReferrerVisitId, uint32_t aTransitionType, const nsACString & aGuid, bool aHidden, uint32_t aVisitCount, uint32_t aTyped, const nsAString & aLastKnownTitle) override { return _to OnVisit(aURI, aVisitId, aTime, aSessionId, aReferrerVisitId, aTransitionType, aGuid, aHidden, aVisitCount, aTyped, aLastKnownTitle); } \
    1280             :   NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) override { return _to OnTitleChanged(aURI, aPageTitle, aGUID); } \
    1281             :   NS_IMETHOD OnFrecencyChanged(nsIURI *aURI, int32_t aNewFrecency, const nsACString & aGUID, bool aHidden, PRTime aVisitDate) override { return _to OnFrecencyChanged(aURI, aNewFrecency, aGUID, aHidden, aVisitDate); } \
    1282             :   NS_IMETHOD OnManyFrecenciesChanged(void) override { return _to OnManyFrecenciesChanged(); } \
    1283             :   NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, uint16_t aReason) override { return _to OnDeleteURI(aURI, aGUID, aReason); } \
    1284             :   NS_IMETHOD OnClearHistory(void) override { return _to OnClearHistory(); } \
    1285             :   NS_IMETHOD OnPageChanged(nsIURI *aURI, uint32_t aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) override { return _to OnPageChanged(aURI, aChangedAttribute, aNewValue, aGUID); } \
    1286             :   NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, uint16_t aReason, uint32_t aTransitionType) override { return _to OnDeleteVisits(aURI, aVisitTime, aGUID, aReason, aTransitionType); } 
    1287             : 
    1288             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1289             : #define NS_FORWARD_SAFE_NSINAVHISTORYOBSERVER(_to) \
    1290             :   NS_IMETHOD OnBeginUpdateBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginUpdateBatch(); } \
    1291             :   NS_IMETHOD OnEndUpdateBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndUpdateBatch(); } \
    1292             :   NS_IMETHOD OnVisit(nsIURI *aURI, int64_t aVisitId, PRTime aTime, int64_t aSessionId, int64_t aReferrerVisitId, uint32_t aTransitionType, const nsACString & aGuid, bool aHidden, uint32_t aVisitCount, uint32_t aTyped, const nsAString & aLastKnownTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnVisit(aURI, aVisitId, aTime, aSessionId, aReferrerVisitId, aTransitionType, aGuid, aHidden, aVisitCount, aTyped, aLastKnownTitle); } \
    1293             :   NS_IMETHOD OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTitleChanged(aURI, aPageTitle, aGUID); } \
    1294             :   NS_IMETHOD OnFrecencyChanged(nsIURI *aURI, int32_t aNewFrecency, const nsACString & aGUID, bool aHidden, PRTime aVisitDate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFrecencyChanged(aURI, aNewFrecency, aGUID, aHidden, aVisitDate); } \
    1295             :   NS_IMETHOD OnManyFrecenciesChanged(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnManyFrecenciesChanged(); } \
    1296             :   NS_IMETHOD OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, uint16_t aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteURI(aURI, aGUID, aReason); } \
    1297             :   NS_IMETHOD OnClearHistory(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClearHistory(); } \
    1298             :   NS_IMETHOD OnPageChanged(nsIURI *aURI, uint32_t aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPageChanged(aURI, aChangedAttribute, aNewValue, aGUID); } \
    1299             :   NS_IMETHOD OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, uint16_t aReason, uint32_t aTransitionType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDeleteVisits(aURI, aVisitTime, aGUID, aReason, aTransitionType); } 
    1300             : 
    1301             : #if 0
    1302             : /* Use the code below as a template for the implementation class for this interface. */
    1303             : 
    1304             : /* Header file */
    1305             : class nsNavHistoryObserver : public nsINavHistoryObserver
    1306             : {
    1307             : public:
    1308             :   NS_DECL_ISUPPORTS
    1309             :   NS_DECL_NSINAVHISTORYOBSERVER
    1310             : 
    1311             :   nsNavHistoryObserver();
    1312             : 
    1313             : private:
    1314             :   ~nsNavHistoryObserver();
    1315             : 
    1316             : protected:
    1317             :   /* additional members */
    1318             : };
    1319             : 
    1320             : /* Implementation file */
    1321             : NS_IMPL_ISUPPORTS(nsNavHistoryObserver, nsINavHistoryObserver)
    1322             : 
    1323             : nsNavHistoryObserver::nsNavHistoryObserver()
    1324             : {
    1325             :   /* member initializers and constructor code */
    1326             : }
    1327             : 
    1328             : nsNavHistoryObserver::~nsNavHistoryObserver()
    1329             : {
    1330             :   /* destructor code */
    1331             : }
    1332             : 
    1333             : /* void onBeginUpdateBatch (); */
    1334             : NS_IMETHODIMP nsNavHistoryObserver::OnBeginUpdateBatch()
    1335             : {
    1336             :     return NS_ERROR_NOT_IMPLEMENTED;
    1337             : }
    1338             : 
    1339             : /* void onEndUpdateBatch (); */
    1340             : NS_IMETHODIMP nsNavHistoryObserver::OnEndUpdateBatch()
    1341             : {
    1342             :     return NS_ERROR_NOT_IMPLEMENTED;
    1343             : }
    1344             : 
    1345             : /* void onVisit (in nsIURI aURI, in long long aVisitId, in PRTime aTime, in long long aSessionId, in long long aReferrerVisitId, in unsigned long aTransitionType, in ACString aGuid, in boolean aHidden, in unsigned long aVisitCount, in unsigned long aTyped, in AString aLastKnownTitle); */
    1346             : NS_IMETHODIMP nsNavHistoryObserver::OnVisit(nsIURI *aURI, int64_t aVisitId, PRTime aTime, int64_t aSessionId, int64_t aReferrerVisitId, uint32_t aTransitionType, const nsACString & aGuid, bool aHidden, uint32_t aVisitCount, uint32_t aTyped, const nsAString & aLastKnownTitle)
    1347             : {
    1348             :     return NS_ERROR_NOT_IMPLEMENTED;
    1349             : }
    1350             : 
    1351             : /* void onTitleChanged (in nsIURI aURI, in AString aPageTitle, in ACString aGUID); */
    1352             : NS_IMETHODIMP nsNavHistoryObserver::OnTitleChanged(nsIURI *aURI, const nsAString & aPageTitle, const nsACString & aGUID)
    1353             : {
    1354             :     return NS_ERROR_NOT_IMPLEMENTED;
    1355             : }
    1356             : 
    1357             : /* void onFrecencyChanged (in nsIURI aURI, in long aNewFrecency, in ACString aGUID, in boolean aHidden, in PRTime aVisitDate); */
    1358             : NS_IMETHODIMP nsNavHistoryObserver::OnFrecencyChanged(nsIURI *aURI, int32_t aNewFrecency, const nsACString & aGUID, bool aHidden, PRTime aVisitDate)
    1359             : {
    1360             :     return NS_ERROR_NOT_IMPLEMENTED;
    1361             : }
    1362             : 
    1363             : /* void onManyFrecenciesChanged (); */
    1364             : NS_IMETHODIMP nsNavHistoryObserver::OnManyFrecenciesChanged()
    1365             : {
    1366             :     return NS_ERROR_NOT_IMPLEMENTED;
    1367             : }
    1368             : 
    1369             : /* void onDeleteURI (in nsIURI aURI, in ACString aGUID, in unsigned short aReason); */
    1370             : NS_IMETHODIMP nsNavHistoryObserver::OnDeleteURI(nsIURI *aURI, const nsACString & aGUID, uint16_t aReason)
    1371             : {
    1372             :     return NS_ERROR_NOT_IMPLEMENTED;
    1373             : }
    1374             : 
    1375             : /* void onClearHistory (); */
    1376             : NS_IMETHODIMP nsNavHistoryObserver::OnClearHistory()
    1377             : {
    1378             :     return NS_ERROR_NOT_IMPLEMENTED;
    1379             : }
    1380             : 
    1381             : /* void onPageChanged (in nsIURI aURI, in unsigned long aChangedAttribute, in AString aNewValue, in ACString aGUID); */
    1382             : NS_IMETHODIMP nsNavHistoryObserver::OnPageChanged(nsIURI *aURI, uint32_t aChangedAttribute, const nsAString & aNewValue, const nsACString & aGUID)
    1383             : {
    1384             :     return NS_ERROR_NOT_IMPLEMENTED;
    1385             : }
    1386             : 
    1387             : /* void onDeleteVisits (in nsIURI aURI, in PRTime aVisitTime, in ACString aGUID, in unsigned short aReason, in unsigned long aTransitionType); */
    1388             : NS_IMETHODIMP nsNavHistoryObserver::OnDeleteVisits(nsIURI *aURI, PRTime aVisitTime, const nsACString & aGUID, uint16_t aReason, uint32_t aTransitionType)
    1389             : {
    1390             :     return NS_ERROR_NOT_IMPLEMENTED;
    1391             : }
    1392             : 
    1393             : /* End of implementation class template. */
    1394             : #endif
    1395             : 
    1396             : 
    1397             : /* starting interface:    nsINavHistoryQuery */
    1398             : #define NS_INAVHISTORYQUERY_IID_STR "dc87ae79-22f1-4dcf-975b-852b01d210cb"
    1399             : 
    1400             : #define NS_INAVHISTORYQUERY_IID \
    1401             :   {0xdc87ae79, 0x22f1, 0x4dcf, \
    1402             :     { 0x97, 0x5b, 0x85, 0x2b, 0x01, 0xd2, 0x10, 0xcb }}
    1403             : 
    1404           0 : class NS_NO_VTABLE nsINavHistoryQuery : public nsISupports {
    1405             :  public:
    1406             : 
    1407             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYQUERY_IID)
    1408             : 
    1409             :   enum {
    1410             :     TIME_RELATIVE_EPOCH = 0U,
    1411             :     TIME_RELATIVE_TODAY = 1U,
    1412             :     TIME_RELATIVE_NOW = 2U
    1413             :   };
    1414             : 
    1415             :   /* attribute PRTime beginTime; */
    1416             :   NS_IMETHOD GetBeginTime(PRTime *aBeginTime) = 0;
    1417             :   NS_IMETHOD SetBeginTime(PRTime aBeginTime) = 0;
    1418             : 
    1419             :   /* attribute unsigned long beginTimeReference; */
    1420             :   NS_IMETHOD GetBeginTimeReference(uint32_t *aBeginTimeReference) = 0;
    1421             :   NS_IMETHOD SetBeginTimeReference(uint32_t aBeginTimeReference) = 0;
    1422             : 
    1423             :   /* readonly attribute boolean hasBeginTime; */
    1424             :   NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) = 0;
    1425             : 
    1426             :   /* readonly attribute PRTime absoluteBeginTime; */
    1427             :   NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) = 0;
    1428             : 
    1429             :   /* attribute PRTime endTime; */
    1430             :   NS_IMETHOD GetEndTime(PRTime *aEndTime) = 0;
    1431             :   NS_IMETHOD SetEndTime(PRTime aEndTime) = 0;
    1432             : 
    1433             :   /* attribute unsigned long endTimeReference; */
    1434             :   NS_IMETHOD GetEndTimeReference(uint32_t *aEndTimeReference) = 0;
    1435             :   NS_IMETHOD SetEndTimeReference(uint32_t aEndTimeReference) = 0;
    1436             : 
    1437             :   /* readonly attribute boolean hasEndTime; */
    1438             :   NS_IMETHOD GetHasEndTime(bool *aHasEndTime) = 0;
    1439             : 
    1440             :   /* readonly attribute PRTime absoluteEndTime; */
    1441             :   NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) = 0;
    1442             : 
    1443             :   /* attribute AString searchTerms; */
    1444             :   NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) = 0;
    1445             :   NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) = 0;
    1446             : 
    1447             :   /* readonly attribute boolean hasSearchTerms; */
    1448             :   NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) = 0;
    1449             : 
    1450             :   /* attribute long minVisits; */
    1451             :   NS_IMETHOD GetMinVisits(int32_t *aMinVisits) = 0;
    1452             :   NS_IMETHOD SetMinVisits(int32_t aMinVisits) = 0;
    1453             : 
    1454             :   /* attribute long maxVisits; */
    1455             :   NS_IMETHOD GetMaxVisits(int32_t *aMaxVisits) = 0;
    1456             :   NS_IMETHOD SetMaxVisits(int32_t aMaxVisits) = 0;
    1457             : 
    1458             :   /* void setTransitions ([array, size_is (count), const] in unsigned long transitions, in unsigned long count); */
    1459             :   NS_IMETHOD SetTransitions(const uint32_t *transitions, uint32_t count) = 0;
    1460             : 
    1461             :   /* void getTransitions ([optional] out unsigned long count, [array, size_is (count), retval] out unsigned long transitions); */
    1462             :   NS_IMETHOD GetTransitions(uint32_t *count, uint32_t **transitions) = 0;
    1463             : 
    1464             :   /* readonly attribute unsigned long transitionCount; */
    1465             :   NS_IMETHOD GetTransitionCount(uint32_t *aTransitionCount) = 0;
    1466             : 
    1467             :   /* attribute boolean onlyBookmarked; */
    1468             :   NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) = 0;
    1469             :   NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) = 0;
    1470             : 
    1471             :   /* attribute boolean domainIsHost; */
    1472             :   NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) = 0;
    1473             :   NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) = 0;
    1474             : 
    1475             :   /* attribute AUTF8String domain; */
    1476             :   NS_IMETHOD GetDomain(nsACString & aDomain) = 0;
    1477             :   NS_IMETHOD SetDomain(const nsACString & aDomain) = 0;
    1478             : 
    1479             :   /* readonly attribute boolean hasDomain; */
    1480             :   NS_IMETHOD GetHasDomain(bool *aHasDomain) = 0;
    1481             : 
    1482             :   /* attribute nsIURI uri; */
    1483             :   NS_IMETHOD GetUri(nsIURI * *aUri) = 0;
    1484             :   NS_IMETHOD SetUri(nsIURI *aUri) = 0;
    1485             : 
    1486             :   /* readonly attribute boolean hasUri; */
    1487             :   NS_IMETHOD GetHasUri(bool *aHasUri) = 0;
    1488             : 
    1489             :   /* attribute boolean annotationIsNot; */
    1490             :   NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) = 0;
    1491             :   NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) = 0;
    1492             : 
    1493             :   /* attribute AUTF8String annotation; */
    1494             :   NS_IMETHOD GetAnnotation(nsACString & aAnnotation) = 0;
    1495             :   NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) = 0;
    1496             : 
    1497             :   /* readonly attribute boolean hasAnnotation; */
    1498             :   NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) = 0;
    1499             : 
    1500             :   /* attribute nsIVariant tags; */
    1501             :   NS_IMETHOD GetTags(nsIVariant * *aTags) = 0;
    1502             :   NS_IMETHOD SetTags(nsIVariant *aTags) = 0;
    1503             : 
    1504             :   /* attribute boolean tagsAreNot; */
    1505             :   NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) = 0;
    1506             :   NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) = 0;
    1507             : 
    1508             :   /* void getFolders ([optional] out unsigned long count, [array, size_is (count), retval] out long long folders); */
    1509             :   NS_IMETHOD GetFolders(uint32_t *count, int64_t **folders) = 0;
    1510             : 
    1511             :   /* readonly attribute unsigned long folderCount; */
    1512             :   NS_IMETHOD GetFolderCount(uint32_t *aFolderCount) = 0;
    1513             : 
    1514             :   /* void setFolders ([array, size_is (folderCount), const] in long long folders, in unsigned long folderCount); */
    1515             :   NS_IMETHOD SetFolders(const int64_t *folders, uint32_t folderCount) = 0;
    1516             : 
    1517             :   /* nsINavHistoryQuery clone (); */
    1518             :   NS_IMETHOD Clone(nsINavHistoryQuery * *_retval) = 0;
    1519             : 
    1520             : };
    1521             : 
    1522             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryQuery, NS_INAVHISTORYQUERY_IID)
    1523             : 
    1524             : /* Use this macro when declaring classes that implement this interface. */
    1525             : #define NS_DECL_NSINAVHISTORYQUERY \
    1526             :   NS_IMETHOD GetBeginTime(PRTime *aBeginTime) override; \
    1527             :   NS_IMETHOD SetBeginTime(PRTime aBeginTime) override; \
    1528             :   NS_IMETHOD GetBeginTimeReference(uint32_t *aBeginTimeReference) override; \
    1529             :   NS_IMETHOD SetBeginTimeReference(uint32_t aBeginTimeReference) override; \
    1530             :   NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) override; \
    1531             :   NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) override; \
    1532             :   NS_IMETHOD GetEndTime(PRTime *aEndTime) override; \
    1533             :   NS_IMETHOD SetEndTime(PRTime aEndTime) override; \
    1534             :   NS_IMETHOD GetEndTimeReference(uint32_t *aEndTimeReference) override; \
    1535             :   NS_IMETHOD SetEndTimeReference(uint32_t aEndTimeReference) override; \
    1536             :   NS_IMETHOD GetHasEndTime(bool *aHasEndTime) override; \
    1537             :   NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) override; \
    1538             :   NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) override; \
    1539             :   NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) override; \
    1540             :   NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) override; \
    1541             :   NS_IMETHOD GetMinVisits(int32_t *aMinVisits) override; \
    1542             :   NS_IMETHOD SetMinVisits(int32_t aMinVisits) override; \
    1543             :   NS_IMETHOD GetMaxVisits(int32_t *aMaxVisits) override; \
    1544             :   NS_IMETHOD SetMaxVisits(int32_t aMaxVisits) override; \
    1545             :   NS_IMETHOD SetTransitions(const uint32_t *transitions, uint32_t count) override; \
    1546             :   NS_IMETHOD GetTransitions(uint32_t *count, uint32_t **transitions) override; \
    1547             :   NS_IMETHOD GetTransitionCount(uint32_t *aTransitionCount) override; \
    1548             :   NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) override; \
    1549             :   NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) override; \
    1550             :   NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) override; \
    1551             :   NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) override; \
    1552             :   NS_IMETHOD GetDomain(nsACString & aDomain) override; \
    1553             :   NS_IMETHOD SetDomain(const nsACString & aDomain) override; \
    1554             :   NS_IMETHOD GetHasDomain(bool *aHasDomain) override; \
    1555             :   NS_IMETHOD GetUri(nsIURI * *aUri) override; \
    1556             :   NS_IMETHOD SetUri(nsIURI *aUri) override; \
    1557             :   NS_IMETHOD GetHasUri(bool *aHasUri) override; \
    1558             :   NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) override; \
    1559             :   NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) override; \
    1560             :   NS_IMETHOD GetAnnotation(nsACString & aAnnotation) override; \
    1561             :   NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) override; \
    1562             :   NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) override; \
    1563             :   NS_IMETHOD GetTags(nsIVariant * *aTags) override; \
    1564             :   NS_IMETHOD SetTags(nsIVariant *aTags) override; \
    1565             :   NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) override; \
    1566             :   NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) override; \
    1567             :   NS_IMETHOD GetFolders(uint32_t *count, int64_t **folders) override; \
    1568             :   NS_IMETHOD GetFolderCount(uint32_t *aFolderCount) override; \
    1569             :   NS_IMETHOD SetFolders(const int64_t *folders, uint32_t folderCount) override; \
    1570             :   NS_IMETHOD Clone(nsINavHistoryQuery * *_retval) override; 
    1571             : 
    1572             : /* Use this macro when declaring the members of this interface when the
    1573             :    class doesn't implement the interface. This is useful for forwarding. */
    1574             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYQUERY \
    1575             :   nsresult GetBeginTime(PRTime *aBeginTime); \
    1576             :   nsresult SetBeginTime(PRTime aBeginTime); \
    1577             :   nsresult GetBeginTimeReference(uint32_t *aBeginTimeReference); \
    1578             :   nsresult SetBeginTimeReference(uint32_t aBeginTimeReference); \
    1579             :   nsresult GetHasBeginTime(bool *aHasBeginTime); \
    1580             :   nsresult GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime); \
    1581             :   nsresult GetEndTime(PRTime *aEndTime); \
    1582             :   nsresult SetEndTime(PRTime aEndTime); \
    1583             :   nsresult GetEndTimeReference(uint32_t *aEndTimeReference); \
    1584             :   nsresult SetEndTimeReference(uint32_t aEndTimeReference); \
    1585             :   nsresult GetHasEndTime(bool *aHasEndTime); \
    1586             :   nsresult GetAbsoluteEndTime(PRTime *aAbsoluteEndTime); \
    1587             :   nsresult GetSearchTerms(nsAString & aSearchTerms); \
    1588             :   nsresult SetSearchTerms(const nsAString & aSearchTerms); \
    1589             :   nsresult GetHasSearchTerms(bool *aHasSearchTerms); \
    1590             :   nsresult GetMinVisits(int32_t *aMinVisits); \
    1591             :   nsresult SetMinVisits(int32_t aMinVisits); \
    1592             :   nsresult GetMaxVisits(int32_t *aMaxVisits); \
    1593             :   nsresult SetMaxVisits(int32_t aMaxVisits); \
    1594             :   nsresult SetTransitions(const uint32_t *transitions, uint32_t count); \
    1595             :   nsresult GetTransitions(uint32_t *count, uint32_t **transitions); \
    1596             :   nsresult GetTransitionCount(uint32_t *aTransitionCount); \
    1597             :   nsresult GetOnlyBookmarked(bool *aOnlyBookmarked); \
    1598             :   nsresult SetOnlyBookmarked(bool aOnlyBookmarked); \
    1599             :   nsresult GetDomainIsHost(bool *aDomainIsHost); \
    1600             :   nsresult SetDomainIsHost(bool aDomainIsHost); \
    1601             :   nsresult GetDomain(nsACString & aDomain); \
    1602             :   nsresult SetDomain(const nsACString & aDomain); \
    1603             :   nsresult GetHasDomain(bool *aHasDomain); \
    1604             :   nsresult GetUri(nsIURI * *aUri); \
    1605             :   nsresult SetUri(nsIURI *aUri); \
    1606             :   nsresult GetHasUri(bool *aHasUri); \
    1607             :   nsresult GetAnnotationIsNot(bool *aAnnotationIsNot); \
    1608             :   nsresult SetAnnotationIsNot(bool aAnnotationIsNot); \
    1609             :   nsresult GetAnnotation(nsACString & aAnnotation); \
    1610             :   nsresult SetAnnotation(const nsACString & aAnnotation); \
    1611             :   nsresult GetHasAnnotation(bool *aHasAnnotation); \
    1612             :   nsresult GetTags(nsIVariant * *aTags); \
    1613             :   nsresult SetTags(nsIVariant *aTags); \
    1614             :   nsresult GetTagsAreNot(bool *aTagsAreNot); \
    1615             :   nsresult SetTagsAreNot(bool aTagsAreNot); \
    1616             :   nsresult GetFolders(uint32_t *count, int64_t **folders); \
    1617             :   nsresult GetFolderCount(uint32_t *aFolderCount); \
    1618             :   nsresult SetFolders(const int64_t *folders, uint32_t folderCount); \
    1619             :   nsresult Clone(nsINavHistoryQuery * *_retval); 
    1620             : 
    1621             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    1622             : #define NS_FORWARD_NSINAVHISTORYQUERY(_to) \
    1623             :   NS_IMETHOD GetBeginTime(PRTime *aBeginTime) override { return _to GetBeginTime(aBeginTime); } \
    1624             :   NS_IMETHOD SetBeginTime(PRTime aBeginTime) override { return _to SetBeginTime(aBeginTime); } \
    1625             :   NS_IMETHOD GetBeginTimeReference(uint32_t *aBeginTimeReference) override { return _to GetBeginTimeReference(aBeginTimeReference); } \
    1626             :   NS_IMETHOD SetBeginTimeReference(uint32_t aBeginTimeReference) override { return _to SetBeginTimeReference(aBeginTimeReference); } \
    1627             :   NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) override { return _to GetHasBeginTime(aHasBeginTime); } \
    1628             :   NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) override { return _to GetAbsoluteBeginTime(aAbsoluteBeginTime); } \
    1629             :   NS_IMETHOD GetEndTime(PRTime *aEndTime) override { return _to GetEndTime(aEndTime); } \
    1630             :   NS_IMETHOD SetEndTime(PRTime aEndTime) override { return _to SetEndTime(aEndTime); } \
    1631             :   NS_IMETHOD GetEndTimeReference(uint32_t *aEndTimeReference) override { return _to GetEndTimeReference(aEndTimeReference); } \
    1632             :   NS_IMETHOD SetEndTimeReference(uint32_t aEndTimeReference) override { return _to SetEndTimeReference(aEndTimeReference); } \
    1633             :   NS_IMETHOD GetHasEndTime(bool *aHasEndTime) override { return _to GetHasEndTime(aHasEndTime); } \
    1634             :   NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) override { return _to GetAbsoluteEndTime(aAbsoluteEndTime); } \
    1635             :   NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) override { return _to GetSearchTerms(aSearchTerms); } \
    1636             :   NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) override { return _to SetSearchTerms(aSearchTerms); } \
    1637             :   NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) override { return _to GetHasSearchTerms(aHasSearchTerms); } \
    1638             :   NS_IMETHOD GetMinVisits(int32_t *aMinVisits) override { return _to GetMinVisits(aMinVisits); } \
    1639             :   NS_IMETHOD SetMinVisits(int32_t aMinVisits) override { return _to SetMinVisits(aMinVisits); } \
    1640             :   NS_IMETHOD GetMaxVisits(int32_t *aMaxVisits) override { return _to GetMaxVisits(aMaxVisits); } \
    1641             :   NS_IMETHOD SetMaxVisits(int32_t aMaxVisits) override { return _to SetMaxVisits(aMaxVisits); } \
    1642             :   NS_IMETHOD SetTransitions(const uint32_t *transitions, uint32_t count) override { return _to SetTransitions(transitions, count); } \
    1643             :   NS_IMETHOD GetTransitions(uint32_t *count, uint32_t **transitions) override { return _to GetTransitions(count, transitions); } \
    1644             :   NS_IMETHOD GetTransitionCount(uint32_t *aTransitionCount) override { return _to GetTransitionCount(aTransitionCount); } \
    1645             :   NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) override { return _to GetOnlyBookmarked(aOnlyBookmarked); } \
    1646             :   NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) override { return _to SetOnlyBookmarked(aOnlyBookmarked); } \
    1647             :   NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) override { return _to GetDomainIsHost(aDomainIsHost); } \
    1648             :   NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) override { return _to SetDomainIsHost(aDomainIsHost); } \
    1649             :   NS_IMETHOD GetDomain(nsACString & aDomain) override { return _to GetDomain(aDomain); } \
    1650             :   NS_IMETHOD SetDomain(const nsACString & aDomain) override { return _to SetDomain(aDomain); } \
    1651             :   NS_IMETHOD GetHasDomain(bool *aHasDomain) override { return _to GetHasDomain(aHasDomain); } \
    1652             :   NS_IMETHOD GetUri(nsIURI * *aUri) override { return _to GetUri(aUri); } \
    1653             :   NS_IMETHOD SetUri(nsIURI *aUri) override { return _to SetUri(aUri); } \
    1654             :   NS_IMETHOD GetHasUri(bool *aHasUri) override { return _to GetHasUri(aHasUri); } \
    1655             :   NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) override { return _to GetAnnotationIsNot(aAnnotationIsNot); } \
    1656             :   NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) override { return _to SetAnnotationIsNot(aAnnotationIsNot); } \
    1657             :   NS_IMETHOD GetAnnotation(nsACString & aAnnotation) override { return _to GetAnnotation(aAnnotation); } \
    1658             :   NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) override { return _to SetAnnotation(aAnnotation); } \
    1659             :   NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) override { return _to GetHasAnnotation(aHasAnnotation); } \
    1660             :   NS_IMETHOD GetTags(nsIVariant * *aTags) override { return _to GetTags(aTags); } \
    1661             :   NS_IMETHOD SetTags(nsIVariant *aTags) override { return _to SetTags(aTags); } \
    1662             :   NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) override { return _to GetTagsAreNot(aTagsAreNot); } \
    1663             :   NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) override { return _to SetTagsAreNot(aTagsAreNot); } \
    1664             :   NS_IMETHOD GetFolders(uint32_t *count, int64_t **folders) override { return _to GetFolders(count, folders); } \
    1665             :   NS_IMETHOD GetFolderCount(uint32_t *aFolderCount) override { return _to GetFolderCount(aFolderCount); } \
    1666             :   NS_IMETHOD SetFolders(const int64_t *folders, uint32_t folderCount) override { return _to SetFolders(folders, folderCount); } \
    1667             :   NS_IMETHOD Clone(nsINavHistoryQuery * *_retval) override { return _to Clone(_retval); } 
    1668             : 
    1669             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    1670             : #define NS_FORWARD_SAFE_NSINAVHISTORYQUERY(_to) \
    1671             :   NS_IMETHOD GetBeginTime(PRTime *aBeginTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginTime(aBeginTime); } \
    1672             :   NS_IMETHOD SetBeginTime(PRTime aBeginTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginTime(aBeginTime); } \
    1673             :   NS_IMETHOD GetBeginTimeReference(uint32_t *aBeginTimeReference) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginTimeReference(aBeginTimeReference); } \
    1674             :   NS_IMETHOD SetBeginTimeReference(uint32_t aBeginTimeReference) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginTimeReference(aBeginTimeReference); } \
    1675             :   NS_IMETHOD GetHasBeginTime(bool *aHasBeginTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasBeginTime(aHasBeginTime); } \
    1676             :   NS_IMETHOD GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsoluteBeginTime(aAbsoluteBeginTime); } \
    1677             :   NS_IMETHOD GetEndTime(PRTime *aEndTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndTime(aEndTime); } \
    1678             :   NS_IMETHOD SetEndTime(PRTime aEndTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndTime(aEndTime); } \
    1679             :   NS_IMETHOD GetEndTimeReference(uint32_t *aEndTimeReference) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndTimeReference(aEndTimeReference); } \
    1680             :   NS_IMETHOD SetEndTimeReference(uint32_t aEndTimeReference) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndTimeReference(aEndTimeReference); } \
    1681             :   NS_IMETHOD GetHasEndTime(bool *aHasEndTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasEndTime(aHasEndTime); } \
    1682             :   NS_IMETHOD GetAbsoluteEndTime(PRTime *aAbsoluteEndTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAbsoluteEndTime(aAbsoluteEndTime); } \
    1683             :   NS_IMETHOD GetSearchTerms(nsAString & aSearchTerms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchTerms(aSearchTerms); } \
    1684             :   NS_IMETHOD SetSearchTerms(const nsAString & aSearchTerms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchTerms(aSearchTerms); } \
    1685             :   NS_IMETHOD GetHasSearchTerms(bool *aHasSearchTerms) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasSearchTerms(aHasSearchTerms); } \
    1686             :   NS_IMETHOD GetMinVisits(int32_t *aMinVisits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinVisits(aMinVisits); } \
    1687             :   NS_IMETHOD SetMinVisits(int32_t aMinVisits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinVisits(aMinVisits); } \
    1688             :   NS_IMETHOD GetMaxVisits(int32_t *aMaxVisits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxVisits(aMaxVisits); } \
    1689             :   NS_IMETHOD SetMaxVisits(int32_t aMaxVisits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxVisits(aMaxVisits); } \
    1690             :   NS_IMETHOD SetTransitions(const uint32_t *transitions, uint32_t count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTransitions(transitions, count); } \
    1691             :   NS_IMETHOD GetTransitions(uint32_t *count, uint32_t **transitions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransitions(count, transitions); } \
    1692             :   NS_IMETHOD GetTransitionCount(uint32_t *aTransitionCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransitionCount(aTransitionCount); } \
    1693             :   NS_IMETHOD GetOnlyBookmarked(bool *aOnlyBookmarked) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlyBookmarked(aOnlyBookmarked); } \
    1694             :   NS_IMETHOD SetOnlyBookmarked(bool aOnlyBookmarked) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlyBookmarked(aOnlyBookmarked); } \
    1695             :   NS_IMETHOD GetDomainIsHost(bool *aDomainIsHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomainIsHost(aDomainIsHost); } \
    1696             :   NS_IMETHOD SetDomainIsHost(bool aDomainIsHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomainIsHost(aDomainIsHost); } \
    1697             :   NS_IMETHOD GetDomain(nsACString & aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
    1698             :   NS_IMETHOD SetDomain(const nsACString & aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } \
    1699             :   NS_IMETHOD GetHasDomain(bool *aHasDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasDomain(aHasDomain); } \
    1700             :   NS_IMETHOD GetUri(nsIURI * *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
    1701             :   NS_IMETHOD SetUri(nsIURI *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
    1702             :   NS_IMETHOD GetHasUri(bool *aHasUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasUri(aHasUri); } \
    1703             :   NS_IMETHOD GetAnnotationIsNot(bool *aAnnotationIsNot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnnotationIsNot(aAnnotationIsNot); } \
    1704             :   NS_IMETHOD SetAnnotationIsNot(bool aAnnotationIsNot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAnnotationIsNot(aAnnotationIsNot); } \
    1705             :   NS_IMETHOD GetAnnotation(nsACString & aAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnnotation(aAnnotation); } \
    1706             :   NS_IMETHOD SetAnnotation(const nsACString & aAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAnnotation(aAnnotation); } \
    1707             :   NS_IMETHOD GetHasAnnotation(bool *aHasAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasAnnotation(aHasAnnotation); } \
    1708             :   NS_IMETHOD GetTags(nsIVariant * *aTags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTags(aTags); } \
    1709             :   NS_IMETHOD SetTags(nsIVariant *aTags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTags(aTags); } \
    1710             :   NS_IMETHOD GetTagsAreNot(bool *aTagsAreNot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagsAreNot(aTagsAreNot); } \
    1711             :   NS_IMETHOD SetTagsAreNot(bool aTagsAreNot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTagsAreNot(aTagsAreNot); } \
    1712             :   NS_IMETHOD GetFolders(uint32_t *count, int64_t **folders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolders(count, folders); } \
    1713             :   NS_IMETHOD GetFolderCount(uint32_t *aFolderCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderCount(aFolderCount); } \
    1714             :   NS_IMETHOD SetFolders(const int64_t *folders, uint32_t folderCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFolders(folders, folderCount); } \
    1715             :   NS_IMETHOD Clone(nsINavHistoryQuery * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } 
    1716             : 
    1717             : #if 0
    1718             : /* Use the code below as a template for the implementation class for this interface. */
    1719             : 
    1720             : /* Header file */
    1721             : class nsNavHistoryQuery : public nsINavHistoryQuery
    1722             : {
    1723             : public:
    1724             :   NS_DECL_ISUPPORTS
    1725             :   NS_DECL_NSINAVHISTORYQUERY
    1726             : 
    1727             :   nsNavHistoryQuery();
    1728             : 
    1729             : private:
    1730             :   ~nsNavHistoryQuery();
    1731             : 
    1732             : protected:
    1733             :   /* additional members */
    1734             : };
    1735             : 
    1736             : /* Implementation file */
    1737             : NS_IMPL_ISUPPORTS(nsNavHistoryQuery, nsINavHistoryQuery)
    1738             : 
    1739             : nsNavHistoryQuery::nsNavHistoryQuery()
    1740             : {
    1741             :   /* member initializers and constructor code */
    1742             : }
    1743             : 
    1744             : nsNavHistoryQuery::~nsNavHistoryQuery()
    1745             : {
    1746             :   /* destructor code */
    1747             : }
    1748             : 
    1749             : /* attribute PRTime beginTime; */
    1750             : NS_IMETHODIMP nsNavHistoryQuery::GetBeginTime(PRTime *aBeginTime)
    1751             : {
    1752             :     return NS_ERROR_NOT_IMPLEMENTED;
    1753             : }
    1754             : NS_IMETHODIMP nsNavHistoryQuery::SetBeginTime(PRTime aBeginTime)
    1755             : {
    1756             :     return NS_ERROR_NOT_IMPLEMENTED;
    1757             : }
    1758             : 
    1759             : /* attribute unsigned long beginTimeReference; */
    1760             : NS_IMETHODIMP nsNavHistoryQuery::GetBeginTimeReference(uint32_t *aBeginTimeReference)
    1761             : {
    1762             :     return NS_ERROR_NOT_IMPLEMENTED;
    1763             : }
    1764             : NS_IMETHODIMP nsNavHistoryQuery::SetBeginTimeReference(uint32_t aBeginTimeReference)
    1765             : {
    1766             :     return NS_ERROR_NOT_IMPLEMENTED;
    1767             : }
    1768             : 
    1769             : /* readonly attribute boolean hasBeginTime; */
    1770             : NS_IMETHODIMP nsNavHistoryQuery::GetHasBeginTime(bool *aHasBeginTime)
    1771             : {
    1772             :     return NS_ERROR_NOT_IMPLEMENTED;
    1773             : }
    1774             : 
    1775             : /* readonly attribute PRTime absoluteBeginTime; */
    1776             : NS_IMETHODIMP nsNavHistoryQuery::GetAbsoluteBeginTime(PRTime *aAbsoluteBeginTime)
    1777             : {
    1778             :     return NS_ERROR_NOT_IMPLEMENTED;
    1779             : }
    1780             : 
    1781             : /* attribute PRTime endTime; */
    1782             : NS_IMETHODIMP nsNavHistoryQuery::GetEndTime(PRTime *aEndTime)
    1783             : {
    1784             :     return NS_ERROR_NOT_IMPLEMENTED;
    1785             : }
    1786             : NS_IMETHODIMP nsNavHistoryQuery::SetEndTime(PRTime aEndTime)
    1787             : {
    1788             :     return NS_ERROR_NOT_IMPLEMENTED;
    1789             : }
    1790             : 
    1791             : /* attribute unsigned long endTimeReference; */
    1792             : NS_IMETHODIMP nsNavHistoryQuery::GetEndTimeReference(uint32_t *aEndTimeReference)
    1793             : {
    1794             :     return NS_ERROR_NOT_IMPLEMENTED;
    1795             : }
    1796             : NS_IMETHODIMP nsNavHistoryQuery::SetEndTimeReference(uint32_t aEndTimeReference)
    1797             : {
    1798             :     return NS_ERROR_NOT_IMPLEMENTED;
    1799             : }
    1800             : 
    1801             : /* readonly attribute boolean hasEndTime; */
    1802             : NS_IMETHODIMP nsNavHistoryQuery::GetHasEndTime(bool *aHasEndTime)
    1803             : {
    1804             :     return NS_ERROR_NOT_IMPLEMENTED;
    1805             : }
    1806             : 
    1807             : /* readonly attribute PRTime absoluteEndTime; */
    1808             : NS_IMETHODIMP nsNavHistoryQuery::GetAbsoluteEndTime(PRTime *aAbsoluteEndTime)
    1809             : {
    1810             :     return NS_ERROR_NOT_IMPLEMENTED;
    1811             : }
    1812             : 
    1813             : /* attribute AString searchTerms; */
    1814             : NS_IMETHODIMP nsNavHistoryQuery::GetSearchTerms(nsAString & aSearchTerms)
    1815             : {
    1816             :     return NS_ERROR_NOT_IMPLEMENTED;
    1817             : }
    1818             : NS_IMETHODIMP nsNavHistoryQuery::SetSearchTerms(const nsAString & aSearchTerms)
    1819             : {
    1820             :     return NS_ERROR_NOT_IMPLEMENTED;
    1821             : }
    1822             : 
    1823             : /* readonly attribute boolean hasSearchTerms; */
    1824             : NS_IMETHODIMP nsNavHistoryQuery::GetHasSearchTerms(bool *aHasSearchTerms)
    1825             : {
    1826             :     return NS_ERROR_NOT_IMPLEMENTED;
    1827             : }
    1828             : 
    1829             : /* attribute long minVisits; */
    1830             : NS_IMETHODIMP nsNavHistoryQuery::GetMinVisits(int32_t *aMinVisits)
    1831             : {
    1832             :     return NS_ERROR_NOT_IMPLEMENTED;
    1833             : }
    1834             : NS_IMETHODIMP nsNavHistoryQuery::SetMinVisits(int32_t aMinVisits)
    1835             : {
    1836             :     return NS_ERROR_NOT_IMPLEMENTED;
    1837             : }
    1838             : 
    1839             : /* attribute long maxVisits; */
    1840             : NS_IMETHODIMP nsNavHistoryQuery::GetMaxVisits(int32_t *aMaxVisits)
    1841             : {
    1842             :     return NS_ERROR_NOT_IMPLEMENTED;
    1843             : }
    1844             : NS_IMETHODIMP nsNavHistoryQuery::SetMaxVisits(int32_t aMaxVisits)
    1845             : {
    1846             :     return NS_ERROR_NOT_IMPLEMENTED;
    1847             : }
    1848             : 
    1849             : /* void setTransitions ([array, size_is (count), const] in unsigned long transitions, in unsigned long count); */
    1850             : NS_IMETHODIMP nsNavHistoryQuery::SetTransitions(const uint32_t *transitions, uint32_t count)
    1851             : {
    1852             :     return NS_ERROR_NOT_IMPLEMENTED;
    1853             : }
    1854             : 
    1855             : /* void getTransitions ([optional] out unsigned long count, [array, size_is (count), retval] out unsigned long transitions); */
    1856             : NS_IMETHODIMP nsNavHistoryQuery::GetTransitions(uint32_t *count, uint32_t **transitions)
    1857             : {
    1858             :     return NS_ERROR_NOT_IMPLEMENTED;
    1859             : }
    1860             : 
    1861             : /* readonly attribute unsigned long transitionCount; */
    1862             : NS_IMETHODIMP nsNavHistoryQuery::GetTransitionCount(uint32_t *aTransitionCount)
    1863             : {
    1864             :     return NS_ERROR_NOT_IMPLEMENTED;
    1865             : }
    1866             : 
    1867             : /* attribute boolean onlyBookmarked; */
    1868             : NS_IMETHODIMP nsNavHistoryQuery::GetOnlyBookmarked(bool *aOnlyBookmarked)
    1869             : {
    1870             :     return NS_ERROR_NOT_IMPLEMENTED;
    1871             : }
    1872             : NS_IMETHODIMP nsNavHistoryQuery::SetOnlyBookmarked(bool aOnlyBookmarked)
    1873             : {
    1874             :     return NS_ERROR_NOT_IMPLEMENTED;
    1875             : }
    1876             : 
    1877             : /* attribute boolean domainIsHost; */
    1878             : NS_IMETHODIMP nsNavHistoryQuery::GetDomainIsHost(bool *aDomainIsHost)
    1879             : {
    1880             :     return NS_ERROR_NOT_IMPLEMENTED;
    1881             : }
    1882             : NS_IMETHODIMP nsNavHistoryQuery::SetDomainIsHost(bool aDomainIsHost)
    1883             : {
    1884             :     return NS_ERROR_NOT_IMPLEMENTED;
    1885             : }
    1886             : 
    1887             : /* attribute AUTF8String domain; */
    1888             : NS_IMETHODIMP nsNavHistoryQuery::GetDomain(nsACString & aDomain)
    1889             : {
    1890             :     return NS_ERROR_NOT_IMPLEMENTED;
    1891             : }
    1892             : NS_IMETHODIMP nsNavHistoryQuery::SetDomain(const nsACString & aDomain)
    1893             : {
    1894             :     return NS_ERROR_NOT_IMPLEMENTED;
    1895             : }
    1896             : 
    1897             : /* readonly attribute boolean hasDomain; */
    1898             : NS_IMETHODIMP nsNavHistoryQuery::GetHasDomain(bool *aHasDomain)
    1899             : {
    1900             :     return NS_ERROR_NOT_IMPLEMENTED;
    1901             : }
    1902             : 
    1903             : /* attribute nsIURI uri; */
    1904             : NS_IMETHODIMP nsNavHistoryQuery::GetUri(nsIURI * *aUri)
    1905             : {
    1906             :     return NS_ERROR_NOT_IMPLEMENTED;
    1907             : }
    1908             : NS_IMETHODIMP nsNavHistoryQuery::SetUri(nsIURI *aUri)
    1909             : {
    1910             :     return NS_ERROR_NOT_IMPLEMENTED;
    1911             : }
    1912             : 
    1913             : /* readonly attribute boolean hasUri; */
    1914             : NS_IMETHODIMP nsNavHistoryQuery::GetHasUri(bool *aHasUri)
    1915             : {
    1916             :     return NS_ERROR_NOT_IMPLEMENTED;
    1917             : }
    1918             : 
    1919             : /* attribute boolean annotationIsNot; */
    1920             : NS_IMETHODIMP nsNavHistoryQuery::GetAnnotationIsNot(bool *aAnnotationIsNot)
    1921             : {
    1922             :     return NS_ERROR_NOT_IMPLEMENTED;
    1923             : }
    1924             : NS_IMETHODIMP nsNavHistoryQuery::SetAnnotationIsNot(bool aAnnotationIsNot)
    1925             : {
    1926             :     return NS_ERROR_NOT_IMPLEMENTED;
    1927             : }
    1928             : 
    1929             : /* attribute AUTF8String annotation; */
    1930             : NS_IMETHODIMP nsNavHistoryQuery::GetAnnotation(nsACString & aAnnotation)
    1931             : {
    1932             :     return NS_ERROR_NOT_IMPLEMENTED;
    1933             : }
    1934             : NS_IMETHODIMP nsNavHistoryQuery::SetAnnotation(const nsACString & aAnnotation)
    1935             : {
    1936             :     return NS_ERROR_NOT_IMPLEMENTED;
    1937             : }
    1938             : 
    1939             : /* readonly attribute boolean hasAnnotation; */
    1940             : NS_IMETHODIMP nsNavHistoryQuery::GetHasAnnotation(bool *aHasAnnotation)
    1941             : {
    1942             :     return NS_ERROR_NOT_IMPLEMENTED;
    1943             : }
    1944             : 
    1945             : /* attribute nsIVariant tags; */
    1946             : NS_IMETHODIMP nsNavHistoryQuery::GetTags(nsIVariant * *aTags)
    1947             : {
    1948             :     return NS_ERROR_NOT_IMPLEMENTED;
    1949             : }
    1950             : NS_IMETHODIMP nsNavHistoryQuery::SetTags(nsIVariant *aTags)
    1951             : {
    1952             :     return NS_ERROR_NOT_IMPLEMENTED;
    1953             : }
    1954             : 
    1955             : /* attribute boolean tagsAreNot; */
    1956             : NS_IMETHODIMP nsNavHistoryQuery::GetTagsAreNot(bool *aTagsAreNot)
    1957             : {
    1958             :     return NS_ERROR_NOT_IMPLEMENTED;
    1959             : }
    1960             : NS_IMETHODIMP nsNavHistoryQuery::SetTagsAreNot(bool aTagsAreNot)
    1961             : {
    1962             :     return NS_ERROR_NOT_IMPLEMENTED;
    1963             : }
    1964             : 
    1965             : /* void getFolders ([optional] out unsigned long count, [array, size_is (count), retval] out long long folders); */
    1966             : NS_IMETHODIMP nsNavHistoryQuery::GetFolders(uint32_t *count, int64_t **folders)
    1967             : {
    1968             :     return NS_ERROR_NOT_IMPLEMENTED;
    1969             : }
    1970             : 
    1971             : /* readonly attribute unsigned long folderCount; */
    1972             : NS_IMETHODIMP nsNavHistoryQuery::GetFolderCount(uint32_t *aFolderCount)
    1973             : {
    1974             :     return NS_ERROR_NOT_IMPLEMENTED;
    1975             : }
    1976             : 
    1977             : /* void setFolders ([array, size_is (folderCount), const] in long long folders, in unsigned long folderCount); */
    1978             : NS_IMETHODIMP nsNavHistoryQuery::SetFolders(const int64_t *folders, uint32_t folderCount)
    1979             : {
    1980             :     return NS_ERROR_NOT_IMPLEMENTED;
    1981             : }
    1982             : 
    1983             : /* nsINavHistoryQuery clone (); */
    1984             : NS_IMETHODIMP nsNavHistoryQuery::Clone(nsINavHistoryQuery * *_retval)
    1985             : {
    1986             :     return NS_ERROR_NOT_IMPLEMENTED;
    1987             : }
    1988             : 
    1989             : /* End of implementation class template. */
    1990             : #endif
    1991             : 
    1992             : 
    1993             : /* starting interface:    nsINavHistoryQueryOptions */
    1994             : #define NS_INAVHISTORYQUERYOPTIONS_IID_STR "8198dfa7-8061-4766-95cb-fa86b3c00a47"
    1995             : 
    1996             : #define NS_INAVHISTORYQUERYOPTIONS_IID \
    1997             :   {0x8198dfa7, 0x8061, 0x4766, \
    1998             :     { 0x95, 0xcb, 0xfa, 0x86, 0xb3, 0xc0, 0x0a, 0x47 }}
    1999             : 
    2000           0 : class NS_NO_VTABLE nsINavHistoryQueryOptions : public nsISupports {
    2001             :  public:
    2002             : 
    2003             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYQUERYOPTIONS_IID)
    2004             : 
    2005             :   enum {
    2006             :     SORT_BY_NONE = 0U,
    2007             :     SORT_BY_TITLE_ASCENDING = 1U,
    2008             :     SORT_BY_TITLE_DESCENDING = 2U,
    2009             :     SORT_BY_DATE_ASCENDING = 3U,
    2010             :     SORT_BY_DATE_DESCENDING = 4U,
    2011             :     SORT_BY_URI_ASCENDING = 5U,
    2012             :     SORT_BY_URI_DESCENDING = 6U,
    2013             :     SORT_BY_VISITCOUNT_ASCENDING = 7U,
    2014             :     SORT_BY_VISITCOUNT_DESCENDING = 8U,
    2015             :     SORT_BY_KEYWORD_ASCENDING = 9U,
    2016             :     SORT_BY_KEYWORD_DESCENDING = 10U,
    2017             :     SORT_BY_DATEADDED_ASCENDING = 11U,
    2018             :     SORT_BY_DATEADDED_DESCENDING = 12U,
    2019             :     SORT_BY_LASTMODIFIED_ASCENDING = 13U,
    2020             :     SORT_BY_LASTMODIFIED_DESCENDING = 14U,
    2021             :     SORT_BY_TAGS_ASCENDING = 17U,
    2022             :     SORT_BY_TAGS_DESCENDING = 18U,
    2023             :     SORT_BY_ANNOTATION_ASCENDING = 19U,
    2024             :     SORT_BY_ANNOTATION_DESCENDING = 20U,
    2025             :     SORT_BY_FRECENCY_ASCENDING = 21U,
    2026             :     SORT_BY_FRECENCY_DESCENDING = 22U,
    2027             :     RESULTS_AS_URI = 0U,
    2028             :     RESULTS_AS_VISIT = 1U,
    2029             :     RESULTS_AS_FULL_VISIT = 2U,
    2030             :     RESULTS_AS_DATE_QUERY = 3U,
    2031             :     RESULTS_AS_SITE_QUERY = 4U,
    2032             :     RESULTS_AS_DATE_SITE_QUERY = 5U,
    2033             :     RESULTS_AS_TAG_QUERY = 6U,
    2034             :     RESULTS_AS_TAG_CONTENTS = 7U
    2035             :   };
    2036             : 
    2037             :   /* attribute unsigned short sortingMode; */
    2038             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) = 0;
    2039             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) = 0;
    2040             : 
    2041             :   /* attribute AUTF8String sortingAnnotation; */
    2042             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) = 0;
    2043             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) = 0;
    2044             : 
    2045             :   /* attribute unsigned short resultType; */
    2046             :   NS_IMETHOD GetResultType(uint16_t *aResultType) = 0;
    2047             :   NS_IMETHOD SetResultType(uint16_t aResultType) = 0;
    2048             : 
    2049             :   /* attribute boolean excludeItems; */
    2050             :   NS_IMETHOD GetExcludeItems(bool *aExcludeItems) = 0;
    2051             :   NS_IMETHOD SetExcludeItems(bool aExcludeItems) = 0;
    2052             : 
    2053             :   /* attribute boolean excludeQueries; */
    2054             :   NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) = 0;
    2055             :   NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) = 0;
    2056             : 
    2057             :   /* attribute boolean excludeReadOnlyFolders; */
    2058             :   NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) = 0;
    2059             :   NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) = 0;
    2060             : 
    2061             :   /* attribute boolean expandQueries; */
    2062             :   NS_IMETHOD GetExpandQueries(bool *aExpandQueries) = 0;
    2063             :   NS_IMETHOD SetExpandQueries(bool aExpandQueries) = 0;
    2064             : 
    2065             :   /* attribute boolean includeHidden; */
    2066             :   NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) = 0;
    2067             :   NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) = 0;
    2068             : 
    2069             :   /* attribute unsigned long maxResults; */
    2070             :   NS_IMETHOD GetMaxResults(uint32_t *aMaxResults) = 0;
    2071             :   NS_IMETHOD SetMaxResults(uint32_t aMaxResults) = 0;
    2072             : 
    2073             :   enum {
    2074             :     QUERY_TYPE_HISTORY = 0U,
    2075             :     QUERY_TYPE_BOOKMARKS = 1U,
    2076             :     QUERY_TYPE_UNIFIED = 2U
    2077             :   };
    2078             : 
    2079             :   /* attribute unsigned short queryType; */
    2080             :   NS_IMETHOD GetQueryType(uint16_t *aQueryType) = 0;
    2081             :   NS_IMETHOD SetQueryType(uint16_t aQueryType) = 0;
    2082             : 
    2083             :   /* attribute boolean asyncEnabled; */
    2084             :   NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) = 0;
    2085             :   NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) = 0;
    2086             : 
    2087             :   /* nsINavHistoryQueryOptions clone (); */
    2088             :   NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval) = 0;
    2089             : 
    2090             : };
    2091             : 
    2092             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryQueryOptions, NS_INAVHISTORYQUERYOPTIONS_IID)
    2093             : 
    2094             : /* Use this macro when declaring classes that implement this interface. */
    2095             : #define NS_DECL_NSINAVHISTORYQUERYOPTIONS \
    2096             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) override; \
    2097             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) override; \
    2098             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) override; \
    2099             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) override; \
    2100             :   NS_IMETHOD GetResultType(uint16_t *aResultType) override; \
    2101             :   NS_IMETHOD SetResultType(uint16_t aResultType) override; \
    2102             :   NS_IMETHOD GetExcludeItems(bool *aExcludeItems) override; \
    2103             :   NS_IMETHOD SetExcludeItems(bool aExcludeItems) override; \
    2104             :   NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) override; \
    2105             :   NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) override; \
    2106             :   NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) override; \
    2107             :   NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) override; \
    2108             :   NS_IMETHOD GetExpandQueries(bool *aExpandQueries) override; \
    2109             :   NS_IMETHOD SetExpandQueries(bool aExpandQueries) override; \
    2110             :   NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) override; \
    2111             :   NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) override; \
    2112             :   NS_IMETHOD GetMaxResults(uint32_t *aMaxResults) override; \
    2113             :   NS_IMETHOD SetMaxResults(uint32_t aMaxResults) override; \
    2114             :   NS_IMETHOD GetQueryType(uint16_t *aQueryType) override; \
    2115             :   NS_IMETHOD SetQueryType(uint16_t aQueryType) override; \
    2116             :   NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) override; \
    2117             :   NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) override; \
    2118             :   NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval) override; 
    2119             : 
    2120             : /* Use this macro when declaring the members of this interface when the
    2121             :    class doesn't implement the interface. This is useful for forwarding. */
    2122             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYQUERYOPTIONS \
    2123             :   nsresult GetSortingMode(uint16_t *aSortingMode); \
    2124             :   nsresult SetSortingMode(uint16_t aSortingMode); \
    2125             :   nsresult GetSortingAnnotation(nsACString & aSortingAnnotation); \
    2126             :   nsresult SetSortingAnnotation(const nsACString & aSortingAnnotation); \
    2127             :   nsresult GetResultType(uint16_t *aResultType); \
    2128             :   nsresult SetResultType(uint16_t aResultType); \
    2129             :   nsresult GetExcludeItems(bool *aExcludeItems); \
    2130             :   nsresult SetExcludeItems(bool aExcludeItems); \
    2131             :   nsresult GetExcludeQueries(bool *aExcludeQueries); \
    2132             :   nsresult SetExcludeQueries(bool aExcludeQueries); \
    2133             :   nsresult GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders); \
    2134             :   nsresult SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders); \
    2135             :   nsresult GetExpandQueries(bool *aExpandQueries); \
    2136             :   nsresult SetExpandQueries(bool aExpandQueries); \
    2137             :   nsresult GetIncludeHidden(bool *aIncludeHidden); \
    2138             :   nsresult SetIncludeHidden(bool aIncludeHidden); \
    2139             :   nsresult GetMaxResults(uint32_t *aMaxResults); \
    2140             :   nsresult SetMaxResults(uint32_t aMaxResults); \
    2141             :   nsresult GetQueryType(uint16_t *aQueryType); \
    2142             :   nsresult SetQueryType(uint16_t aQueryType); \
    2143             :   nsresult GetAsyncEnabled(bool *aAsyncEnabled); \
    2144             :   nsresult SetAsyncEnabled(bool aAsyncEnabled); \
    2145             :   nsresult Clone(nsINavHistoryQueryOptions * *_retval); 
    2146             : 
    2147             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    2148             : #define NS_FORWARD_NSINAVHISTORYQUERYOPTIONS(_to) \
    2149             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) override { return _to GetSortingMode(aSortingMode); } \
    2150             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) override { return _to SetSortingMode(aSortingMode); } \
    2151             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) override { return _to GetSortingAnnotation(aSortingAnnotation); } \
    2152             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) override { return _to SetSortingAnnotation(aSortingAnnotation); } \
    2153             :   NS_IMETHOD GetResultType(uint16_t *aResultType) override { return _to GetResultType(aResultType); } \
    2154             :   NS_IMETHOD SetResultType(uint16_t aResultType) override { return _to SetResultType(aResultType); } \
    2155             :   NS_IMETHOD GetExcludeItems(bool *aExcludeItems) override { return _to GetExcludeItems(aExcludeItems); } \
    2156             :   NS_IMETHOD SetExcludeItems(bool aExcludeItems) override { return _to SetExcludeItems(aExcludeItems); } \
    2157             :   NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) override { return _to GetExcludeQueries(aExcludeQueries); } \
    2158             :   NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) override { return _to SetExcludeQueries(aExcludeQueries); } \
    2159             :   NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) override { return _to GetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
    2160             :   NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) override { return _to SetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
    2161             :   NS_IMETHOD GetExpandQueries(bool *aExpandQueries) override { return _to GetExpandQueries(aExpandQueries); } \
    2162             :   NS_IMETHOD SetExpandQueries(bool aExpandQueries) override { return _to SetExpandQueries(aExpandQueries); } \
    2163             :   NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) override { return _to GetIncludeHidden(aIncludeHidden); } \
    2164             :   NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) override { return _to SetIncludeHidden(aIncludeHidden); } \
    2165             :   NS_IMETHOD GetMaxResults(uint32_t *aMaxResults) override { return _to GetMaxResults(aMaxResults); } \
    2166             :   NS_IMETHOD SetMaxResults(uint32_t aMaxResults) override { return _to SetMaxResults(aMaxResults); } \
    2167             :   NS_IMETHOD GetQueryType(uint16_t *aQueryType) override { return _to GetQueryType(aQueryType); } \
    2168             :   NS_IMETHOD SetQueryType(uint16_t aQueryType) override { return _to SetQueryType(aQueryType); } \
    2169             :   NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) override { return _to GetAsyncEnabled(aAsyncEnabled); } \
    2170             :   NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) override { return _to SetAsyncEnabled(aAsyncEnabled); } \
    2171             :   NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval) override { return _to Clone(_retval); } 
    2172             : 
    2173             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    2174             : #define NS_FORWARD_SAFE_NSINAVHISTORYQUERYOPTIONS(_to) \
    2175             :   NS_IMETHOD GetSortingMode(uint16_t *aSortingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingMode(aSortingMode); } \
    2176             :   NS_IMETHOD SetSortingMode(uint16_t aSortingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingMode(aSortingMode); } \
    2177             :   NS_IMETHOD GetSortingAnnotation(nsACString & aSortingAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSortingAnnotation(aSortingAnnotation); } \
    2178             :   NS_IMETHOD SetSortingAnnotation(const nsACString & aSortingAnnotation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSortingAnnotation(aSortingAnnotation); } \
    2179             :   NS_IMETHOD GetResultType(uint16_t *aResultType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultType(aResultType); } \
    2180             :   NS_IMETHOD SetResultType(uint16_t aResultType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResultType(aResultType); } \
    2181             :   NS_IMETHOD GetExcludeItems(bool *aExcludeItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExcludeItems(aExcludeItems); } \
    2182             :   NS_IMETHOD SetExcludeItems(bool aExcludeItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExcludeItems(aExcludeItems); } \
    2183             :   NS_IMETHOD GetExcludeQueries(bool *aExcludeQueries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExcludeQueries(aExcludeQueries); } \
    2184             :   NS_IMETHOD SetExcludeQueries(bool aExcludeQueries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExcludeQueries(aExcludeQueries); } \
    2185             :   NS_IMETHOD GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
    2186             :   NS_IMETHOD SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExcludeReadOnlyFolders(aExcludeReadOnlyFolders); } \
    2187             :   NS_IMETHOD GetExpandQueries(bool *aExpandQueries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpandQueries(aExpandQueries); } \
    2188             :   NS_IMETHOD SetExpandQueries(bool aExpandQueries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExpandQueries(aExpandQueries); } \
    2189             :   NS_IMETHOD GetIncludeHidden(bool *aIncludeHidden) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludeHidden(aIncludeHidden); } \
    2190             :   NS_IMETHOD SetIncludeHidden(bool aIncludeHidden) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIncludeHidden(aIncludeHidden); } \
    2191             :   NS_IMETHOD GetMaxResults(uint32_t *aMaxResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxResults(aMaxResults); } \
    2192             :   NS_IMETHOD SetMaxResults(uint32_t aMaxResults) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxResults(aMaxResults); } \
    2193             :   NS_IMETHOD GetQueryType(uint16_t *aQueryType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueryType(aQueryType); } \
    2194             :   NS_IMETHOD SetQueryType(uint16_t aQueryType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQueryType(aQueryType); } \
    2195             :   NS_IMETHOD GetAsyncEnabled(bool *aAsyncEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsyncEnabled(aAsyncEnabled); } \
    2196             :   NS_IMETHOD SetAsyncEnabled(bool aAsyncEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsyncEnabled(aAsyncEnabled); } \
    2197             :   NS_IMETHOD Clone(nsINavHistoryQueryOptions * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } 
    2198             : 
    2199             : #if 0
    2200             : /* Use the code below as a template for the implementation class for this interface. */
    2201             : 
    2202             : /* Header file */
    2203             : class nsNavHistoryQueryOptions : public nsINavHistoryQueryOptions
    2204             : {
    2205             : public:
    2206             :   NS_DECL_ISUPPORTS
    2207             :   NS_DECL_NSINAVHISTORYQUERYOPTIONS
    2208             : 
    2209             :   nsNavHistoryQueryOptions();
    2210             : 
    2211             : private:
    2212             :   ~nsNavHistoryQueryOptions();
    2213             : 
    2214             : protected:
    2215             :   /* additional members */
    2216             : };
    2217             : 
    2218             : /* Implementation file */
    2219             : NS_IMPL_ISUPPORTS(nsNavHistoryQueryOptions, nsINavHistoryQueryOptions)
    2220             : 
    2221             : nsNavHistoryQueryOptions::nsNavHistoryQueryOptions()
    2222             : {
    2223             :   /* member initializers and constructor code */
    2224             : }
    2225             : 
    2226             : nsNavHistoryQueryOptions::~nsNavHistoryQueryOptions()
    2227             : {
    2228             :   /* destructor code */
    2229             : }
    2230             : 
    2231             : /* attribute unsigned short sortingMode; */
    2232             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetSortingMode(uint16_t *aSortingMode)
    2233             : {
    2234             :     return NS_ERROR_NOT_IMPLEMENTED;
    2235             : }
    2236             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetSortingMode(uint16_t aSortingMode)
    2237             : {
    2238             :     return NS_ERROR_NOT_IMPLEMENTED;
    2239             : }
    2240             : 
    2241             : /* attribute AUTF8String sortingAnnotation; */
    2242             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetSortingAnnotation(nsACString & aSortingAnnotation)
    2243             : {
    2244             :     return NS_ERROR_NOT_IMPLEMENTED;
    2245             : }
    2246             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetSortingAnnotation(const nsACString & aSortingAnnotation)
    2247             : {
    2248             :     return NS_ERROR_NOT_IMPLEMENTED;
    2249             : }
    2250             : 
    2251             : /* attribute unsigned short resultType; */
    2252             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetResultType(uint16_t *aResultType)
    2253             : {
    2254             :     return NS_ERROR_NOT_IMPLEMENTED;
    2255             : }
    2256             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetResultType(uint16_t aResultType)
    2257             : {
    2258             :     return NS_ERROR_NOT_IMPLEMENTED;
    2259             : }
    2260             : 
    2261             : /* attribute boolean excludeItems; */
    2262             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExcludeItems(bool *aExcludeItems)
    2263             : {
    2264             :     return NS_ERROR_NOT_IMPLEMENTED;
    2265             : }
    2266             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExcludeItems(bool aExcludeItems)
    2267             : {
    2268             :     return NS_ERROR_NOT_IMPLEMENTED;
    2269             : }
    2270             : 
    2271             : /* attribute boolean excludeQueries; */
    2272             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExcludeQueries(bool *aExcludeQueries)
    2273             : {
    2274             :     return NS_ERROR_NOT_IMPLEMENTED;
    2275             : }
    2276             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExcludeQueries(bool aExcludeQueries)
    2277             : {
    2278             :     return NS_ERROR_NOT_IMPLEMENTED;
    2279             : }
    2280             : 
    2281             : /* attribute boolean excludeReadOnlyFolders; */
    2282             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExcludeReadOnlyFolders(bool *aExcludeReadOnlyFolders)
    2283             : {
    2284             :     return NS_ERROR_NOT_IMPLEMENTED;
    2285             : }
    2286             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExcludeReadOnlyFolders(bool aExcludeReadOnlyFolders)
    2287             : {
    2288             :     return NS_ERROR_NOT_IMPLEMENTED;
    2289             : }
    2290             : 
    2291             : /* attribute boolean expandQueries; */
    2292             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetExpandQueries(bool *aExpandQueries)
    2293             : {
    2294             :     return NS_ERROR_NOT_IMPLEMENTED;
    2295             : }
    2296             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetExpandQueries(bool aExpandQueries)
    2297             : {
    2298             :     return NS_ERROR_NOT_IMPLEMENTED;
    2299             : }
    2300             : 
    2301             : /* attribute boolean includeHidden; */
    2302             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetIncludeHidden(bool *aIncludeHidden)
    2303             : {
    2304             :     return NS_ERROR_NOT_IMPLEMENTED;
    2305             : }
    2306             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetIncludeHidden(bool aIncludeHidden)
    2307             : {
    2308             :     return NS_ERROR_NOT_IMPLEMENTED;
    2309             : }
    2310             : 
    2311             : /* attribute unsigned long maxResults; */
    2312             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetMaxResults(uint32_t *aMaxResults)
    2313             : {
    2314             :     return NS_ERROR_NOT_IMPLEMENTED;
    2315             : }
    2316             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetMaxResults(uint32_t aMaxResults)
    2317             : {
    2318             :     return NS_ERROR_NOT_IMPLEMENTED;
    2319             : }
    2320             : 
    2321             : /* attribute unsigned short queryType; */
    2322             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetQueryType(uint16_t *aQueryType)
    2323             : {
    2324             :     return NS_ERROR_NOT_IMPLEMENTED;
    2325             : }
    2326             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetQueryType(uint16_t aQueryType)
    2327             : {
    2328             :     return NS_ERROR_NOT_IMPLEMENTED;
    2329             : }
    2330             : 
    2331             : /* attribute boolean asyncEnabled; */
    2332             : NS_IMETHODIMP nsNavHistoryQueryOptions::GetAsyncEnabled(bool *aAsyncEnabled)
    2333             : {
    2334             :     return NS_ERROR_NOT_IMPLEMENTED;
    2335             : }
    2336             : NS_IMETHODIMP nsNavHistoryQueryOptions::SetAsyncEnabled(bool aAsyncEnabled)
    2337             : {
    2338             :     return NS_ERROR_NOT_IMPLEMENTED;
    2339             : }
    2340             : 
    2341             : /* nsINavHistoryQueryOptions clone (); */
    2342             : NS_IMETHODIMP nsNavHistoryQueryOptions::Clone(nsINavHistoryQueryOptions * *_retval)
    2343             : {
    2344             :     return NS_ERROR_NOT_IMPLEMENTED;
    2345             : }
    2346             : 
    2347             : /* End of implementation class template. */
    2348             : #endif
    2349             : 
    2350             : 
    2351             : /* starting interface:    nsINavHistoryService */
    2352             : #define NS_INAVHISTORYSERVICE_IID_STR "8a1f527e-c9d7-4a51-bf0c-d86f0379b701"
    2353             : 
    2354             : #define NS_INAVHISTORYSERVICE_IID \
    2355             :   {0x8a1f527e, 0xc9d7, 0x4a51, \
    2356             :     { 0xbf, 0x0c, 0xd8, 0x6f, 0x03, 0x79, 0xb7, 0x01 }}
    2357             : 
    2358           1 : class NS_NO_VTABLE nsINavHistoryService : public nsISupports {
    2359             :  public:
    2360             : 
    2361             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYSERVICE_IID)
    2362             : 
    2363             :   enum {
    2364             :     TRANSITION_LINK = 1U,
    2365             :     TRANSITION_TYPED = 2U,
    2366             :     TRANSITION_BOOKMARK = 3U,
    2367             :     TRANSITION_EMBED = 4U,
    2368             :     TRANSITION_REDIRECT_PERMANENT = 5U,
    2369             :     TRANSITION_REDIRECT_TEMPORARY = 6U,
    2370             :     TRANSITION_DOWNLOAD = 7U,
    2371             :     TRANSITION_FRAMED_LINK = 8U,
    2372             :     TRANSITION_RELOAD = 9U,
    2373             :     DATABASE_STATUS_OK = 0U,
    2374             :     DATABASE_STATUS_CREATE = 1U,
    2375             :     DATABASE_STATUS_CORRUPT = 2U,
    2376             :     DATABASE_STATUS_UPGRADED = 3U,
    2377             :     DATABASE_STATUS_LOCKED = 4U
    2378             :   };
    2379             : 
    2380             :   /* readonly attribute unsigned short databaseStatus; */
    2381             :   NS_IMETHOD GetDatabaseStatus(uint16_t *aDatabaseStatus) = 0;
    2382             : 
    2383             :   /* readonly attribute boolean hasHistoryEntries; */
    2384             :   NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) = 0;
    2385             : 
    2386             :   /* AString getPageTitle (in nsIURI aURI); */
    2387             :   NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval) = 0;
    2388             : 
    2389             :   /* void markPageAsFollowedBookmark (in nsIURI aURI); */
    2390             :   NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) = 0;
    2391             : 
    2392             :   /* void markPageAsTyped (in nsIURI aURI); */
    2393             :   NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) = 0;
    2394             : 
    2395             :   /* void markPageAsFollowedLink (in nsIURI aURI); */
    2396             :   NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) = 0;
    2397             : 
    2398             :   /* boolean canAddURI (in nsIURI aURI); */
    2399             :   NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval) = 0;
    2400             : 
    2401             :   /* nsINavHistoryQuery getNewQuery (); */
    2402             :   NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval) = 0;
    2403             : 
    2404             :   /* nsINavHistoryQueryOptions getNewQueryOptions (); */
    2405             :   NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval) = 0;
    2406             : 
    2407             :   /* nsINavHistoryResult executeQuery (in nsINavHistoryQuery aQuery, in nsINavHistoryQueryOptions options); */
    2408             :   NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) = 0;
    2409             : 
    2410             :   /* nsINavHistoryResult executeQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
    2411             :   NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) = 0;
    2412             : 
    2413             :   /* void queryStringToQueries (in AUTF8String aQueryString, [array, size_is (aResultCount)] out nsINavHistoryQuery aQueries, out unsigned long aResultCount, out nsINavHistoryQueryOptions options); */
    2414             :   NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries, uint32_t *aResultCount, nsINavHistoryQueryOptions * *options) = 0;
    2415             : 
    2416             :   /* AUTF8String queriesToQueryString ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
    2417             :   NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval) = 0;
    2418             : 
    2419             :   /* void addObserver (in nsINavHistoryObserver observer, [optional] in boolean ownsWeak); */
    2420             :   NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) = 0;
    2421             : 
    2422             :   /* void removeObserver (in nsINavHistoryObserver observer); */
    2423             :   NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) = 0;
    2424             : 
    2425             :   /* void getObservers ([optional] out unsigned long count, [array, size_is (count), retval] out nsINavHistoryObserver observers); */
    2426             :   NS_IMETHOD GetObservers(uint32_t *count, nsINavHistoryObserver * **observers) = 0;
    2427             : 
    2428             :   /* void runInBatchMode (in nsINavHistoryBatchCallback aCallback, in nsISupports aClosure); */
    2429             :   NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) = 0;
    2430             : 
    2431             :   /* readonly attribute boolean historyDisabled; */
    2432             :   NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) = 0;
    2433             : 
    2434             :   /* void clearEmbedVisits (); */
    2435             :   NS_IMETHOD ClearEmbedVisits(void) = 0;
    2436             : 
    2437             :   /* ACString makeGuid (); */
    2438             :   NS_IMETHOD MakeGuid(nsACString & _retval) = 0;
    2439             : 
    2440             : };
    2441             : 
    2442             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryService, NS_INAVHISTORYSERVICE_IID)
    2443             : 
    2444             : /* Use this macro when declaring classes that implement this interface. */
    2445             : #define NS_DECL_NSINAVHISTORYSERVICE \
    2446             :   NS_IMETHOD GetDatabaseStatus(uint16_t *aDatabaseStatus) override; \
    2447             :   NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) override; \
    2448             :   NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval) override; \
    2449             :   NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) override; \
    2450             :   NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) override; \
    2451             :   NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) override; \
    2452             :   NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval) override; \
    2453             :   NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval) override; \
    2454             :   NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval) override; \
    2455             :   NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) override; \
    2456             :   NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) override; \
    2457             :   NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries, uint32_t *aResultCount, nsINavHistoryQueryOptions * *options) override; \
    2458             :   NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval) override; \
    2459             :   NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) override; \
    2460             :   NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) override; \
    2461             :   NS_IMETHOD GetObservers(uint32_t *count, nsINavHistoryObserver * **observers) override; \
    2462             :   NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) override; \
    2463             :   NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) override; \
    2464             :   NS_IMETHOD ClearEmbedVisits(void) override; \
    2465             :   NS_IMETHOD MakeGuid(nsACString & _retval) override; 
    2466             : 
    2467             : /* Use this macro when declaring the members of this interface when the
    2468             :    class doesn't implement the interface. This is useful for forwarding. */
    2469             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYSERVICE \
    2470             :   nsresult GetDatabaseStatus(uint16_t *aDatabaseStatus); \
    2471             :   nsresult GetHasHistoryEntries(bool *aHasHistoryEntries); \
    2472             :   nsresult GetPageTitle(nsIURI *aURI, nsAString & _retval); \
    2473             :   nsresult MarkPageAsFollowedBookmark(nsIURI *aURI); \
    2474             :   nsresult MarkPageAsTyped(nsIURI *aURI); \
    2475             :   nsresult MarkPageAsFollowedLink(nsIURI *aURI); \
    2476             :   nsresult CanAddURI(nsIURI *aURI, bool *_retval); \
    2477             :   nsresult GetNewQuery(nsINavHistoryQuery * *_retval); \
    2478             :   nsresult GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval); \
    2479             :   nsresult ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval); \
    2480             :   nsresult ExecuteQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval); \
    2481             :   nsresult QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries, uint32_t *aResultCount, nsINavHistoryQueryOptions * *options); \
    2482             :   nsresult QueriesToQueryString(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval); \
    2483             :   nsresult AddObserver(nsINavHistoryObserver *observer, bool ownsWeak); \
    2484             :   nsresult RemoveObserver(nsINavHistoryObserver *observer); \
    2485             :   nsresult GetObservers(uint32_t *count, nsINavHistoryObserver * **observers); \
    2486             :   nsresult RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure); \
    2487             :   nsresult GetHistoryDisabled(bool *aHistoryDisabled); \
    2488             :   nsresult ClearEmbedVisits(void); \
    2489             :   nsresult MakeGuid(nsACString & _retval); 
    2490             : 
    2491             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    2492             : #define NS_FORWARD_NSINAVHISTORYSERVICE(_to) \
    2493             :   NS_IMETHOD GetDatabaseStatus(uint16_t *aDatabaseStatus) override { return _to GetDatabaseStatus(aDatabaseStatus); } \
    2494             :   NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) override { return _to GetHasHistoryEntries(aHasHistoryEntries); } \
    2495             :   NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval) override { return _to GetPageTitle(aURI, _retval); } \
    2496             :   NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) override { return _to MarkPageAsFollowedBookmark(aURI); } \
    2497             :   NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) override { return _to MarkPageAsTyped(aURI); } \
    2498             :   NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) override { return _to MarkPageAsFollowedLink(aURI); } \
    2499             :   NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval) override { return _to CanAddURI(aURI, _retval); } \
    2500             :   NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval) override { return _to GetNewQuery(_retval); } \
    2501             :   NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval) override { return _to GetNewQueryOptions(_retval); } \
    2502             :   NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) override { return _to ExecuteQuery(aQuery, options, _retval); } \
    2503             :   NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) override { return _to ExecuteQueries(aQueries, aQueryCount, options, _retval); } \
    2504             :   NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries, uint32_t *aResultCount, nsINavHistoryQueryOptions * *options) override { return _to QueryStringToQueries(aQueryString, aQueries, aResultCount, options); } \
    2505             :   NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval) override { return _to QueriesToQueryString(aQueries, aQueryCount, options, _retval); } \
    2506             :   NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) override { return _to AddObserver(observer, ownsWeak); } \
    2507             :   NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) override { return _to RemoveObserver(observer); } \
    2508             :   NS_IMETHOD GetObservers(uint32_t *count, nsINavHistoryObserver * **observers) override { return _to GetObservers(count, observers); } \
    2509             :   NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) override { return _to RunInBatchMode(aCallback, aClosure); } \
    2510             :   NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) override { return _to GetHistoryDisabled(aHistoryDisabled); } \
    2511             :   NS_IMETHOD ClearEmbedVisits(void) override { return _to ClearEmbedVisits(); } \
    2512             :   NS_IMETHOD MakeGuid(nsACString & _retval) override { return _to MakeGuid(_retval); } 
    2513             : 
    2514             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    2515             : #define NS_FORWARD_SAFE_NSINAVHISTORYSERVICE(_to) \
    2516             :   NS_IMETHOD GetDatabaseStatus(uint16_t *aDatabaseStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDatabaseStatus(aDatabaseStatus); } \
    2517             :   NS_IMETHOD GetHasHistoryEntries(bool *aHasHistoryEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasHistoryEntries(aHasHistoryEntries); } \
    2518             :   NS_IMETHOD GetPageTitle(nsIURI *aURI, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageTitle(aURI, _retval); } \
    2519             :   NS_IMETHOD MarkPageAsFollowedBookmark(nsIURI *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkPageAsFollowedBookmark(aURI); } \
    2520             :   NS_IMETHOD MarkPageAsTyped(nsIURI *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkPageAsTyped(aURI); } \
    2521             :   NS_IMETHOD MarkPageAsFollowedLink(nsIURI *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkPageAsFollowedLink(aURI); } \
    2522             :   NS_IMETHOD CanAddURI(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanAddURI(aURI, _retval); } \
    2523             :   NS_IMETHOD GetNewQuery(nsINavHistoryQuery * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewQuery(_retval); } \
    2524             :   NS_IMETHOD GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewQueryOptions(_retval); } \
    2525             :   NS_IMETHOD ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteQuery(aQuery, options, _retval); } \
    2526             :   NS_IMETHOD ExecuteQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExecuteQueries(aQueries, aQueryCount, options, _retval); } \
    2527             :   NS_IMETHOD QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries, uint32_t *aResultCount, nsINavHistoryQueryOptions * *options) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryStringToQueries(aQueryString, aQueries, aResultCount, options); } \
    2528             :   NS_IMETHOD QueriesToQueryString(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueriesToQueryString(aQueries, aQueryCount, options, _retval); } \
    2529             :   NS_IMETHOD AddObserver(nsINavHistoryObserver *observer, bool ownsWeak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer, ownsWeak); } \
    2530             :   NS_IMETHOD RemoveObserver(nsINavHistoryObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } \
    2531             :   NS_IMETHOD GetObservers(uint32_t *count, nsINavHistoryObserver * **observers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObservers(count, observers); } \
    2532             :   NS_IMETHOD RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunInBatchMode(aCallback, aClosure); } \
    2533             :   NS_IMETHOD GetHistoryDisabled(bool *aHistoryDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistoryDisabled(aHistoryDisabled); } \
    2534             :   NS_IMETHOD ClearEmbedVisits(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearEmbedVisits(); } \
    2535             :   NS_IMETHOD MakeGuid(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeGuid(_retval); } 
    2536             : 
    2537             : #if 0
    2538             : /* Use the code below as a template for the implementation class for this interface. */
    2539             : 
    2540             : /* Header file */
    2541             : class nsNavHistoryService : public nsINavHistoryService
    2542             : {
    2543             : public:
    2544             :   NS_DECL_ISUPPORTS
    2545             :   NS_DECL_NSINAVHISTORYSERVICE
    2546             : 
    2547             :   nsNavHistoryService();
    2548             : 
    2549             : private:
    2550             :   ~nsNavHistoryService();
    2551             : 
    2552             : protected:
    2553             :   /* additional members */
    2554             : };
    2555             : 
    2556             : /* Implementation file */
    2557             : NS_IMPL_ISUPPORTS(nsNavHistoryService, nsINavHistoryService)
    2558             : 
    2559             : nsNavHistoryService::nsNavHistoryService()
    2560             : {
    2561             :   /* member initializers and constructor code */
    2562             : }
    2563             : 
    2564             : nsNavHistoryService::~nsNavHistoryService()
    2565             : {
    2566             :   /* destructor code */
    2567             : }
    2568             : 
    2569             : /* readonly attribute unsigned short databaseStatus; */
    2570             : NS_IMETHODIMP nsNavHistoryService::GetDatabaseStatus(uint16_t *aDatabaseStatus)
    2571             : {
    2572             :     return NS_ERROR_NOT_IMPLEMENTED;
    2573             : }
    2574             : 
    2575             : /* readonly attribute boolean hasHistoryEntries; */
    2576             : NS_IMETHODIMP nsNavHistoryService::GetHasHistoryEntries(bool *aHasHistoryEntries)
    2577             : {
    2578             :     return NS_ERROR_NOT_IMPLEMENTED;
    2579             : }
    2580             : 
    2581             : /* AString getPageTitle (in nsIURI aURI); */
    2582             : NS_IMETHODIMP nsNavHistoryService::GetPageTitle(nsIURI *aURI, nsAString & _retval)
    2583             : {
    2584             :     return NS_ERROR_NOT_IMPLEMENTED;
    2585             : }
    2586             : 
    2587             : /* void markPageAsFollowedBookmark (in nsIURI aURI); */
    2588             : NS_IMETHODIMP nsNavHistoryService::MarkPageAsFollowedBookmark(nsIURI *aURI)
    2589             : {
    2590             :     return NS_ERROR_NOT_IMPLEMENTED;
    2591             : }
    2592             : 
    2593             : /* void markPageAsTyped (in nsIURI aURI); */
    2594             : NS_IMETHODIMP nsNavHistoryService::MarkPageAsTyped(nsIURI *aURI)
    2595             : {
    2596             :     return NS_ERROR_NOT_IMPLEMENTED;
    2597             : }
    2598             : 
    2599             : /* void markPageAsFollowedLink (in nsIURI aURI); */
    2600             : NS_IMETHODIMP nsNavHistoryService::MarkPageAsFollowedLink(nsIURI *aURI)
    2601             : {
    2602             :     return NS_ERROR_NOT_IMPLEMENTED;
    2603             : }
    2604             : 
    2605             : /* boolean canAddURI (in nsIURI aURI); */
    2606             : NS_IMETHODIMP nsNavHistoryService::CanAddURI(nsIURI *aURI, bool *_retval)
    2607             : {
    2608             :     return NS_ERROR_NOT_IMPLEMENTED;
    2609             : }
    2610             : 
    2611             : /* nsINavHistoryQuery getNewQuery (); */
    2612             : NS_IMETHODIMP nsNavHistoryService::GetNewQuery(nsINavHistoryQuery * *_retval)
    2613             : {
    2614             :     return NS_ERROR_NOT_IMPLEMENTED;
    2615             : }
    2616             : 
    2617             : /* nsINavHistoryQueryOptions getNewQueryOptions (); */
    2618             : NS_IMETHODIMP nsNavHistoryService::GetNewQueryOptions(nsINavHistoryQueryOptions * *_retval)
    2619             : {
    2620             :     return NS_ERROR_NOT_IMPLEMENTED;
    2621             : }
    2622             : 
    2623             : /* nsINavHistoryResult executeQuery (in nsINavHistoryQuery aQuery, in nsINavHistoryQueryOptions options); */
    2624             : NS_IMETHODIMP nsNavHistoryService::ExecuteQuery(nsINavHistoryQuery *aQuery, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval)
    2625             : {
    2626             :     return NS_ERROR_NOT_IMPLEMENTED;
    2627             : }
    2628             : 
    2629             : /* nsINavHistoryResult executeQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
    2630             : NS_IMETHODIMP nsNavHistoryService::ExecuteQueries(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsINavHistoryResult * *_retval)
    2631             : {
    2632             :     return NS_ERROR_NOT_IMPLEMENTED;
    2633             : }
    2634             : 
    2635             : /* void queryStringToQueries (in AUTF8String aQueryString, [array, size_is (aResultCount)] out nsINavHistoryQuery aQueries, out unsigned long aResultCount, out nsINavHistoryQueryOptions options); */
    2636             : NS_IMETHODIMP nsNavHistoryService::QueryStringToQueries(const nsACString & aQueryString, nsINavHistoryQuery * **aQueries, uint32_t *aResultCount, nsINavHistoryQueryOptions * *options)
    2637             : {
    2638             :     return NS_ERROR_NOT_IMPLEMENTED;
    2639             : }
    2640             : 
    2641             : /* AUTF8String queriesToQueryString ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions options); */
    2642             : NS_IMETHODIMP nsNavHistoryService::QueriesToQueryString(nsINavHistoryQuery **aQueries, uint32_t aQueryCount, nsINavHistoryQueryOptions *options, nsACString & _retval)
    2643             : {
    2644             :     return NS_ERROR_NOT_IMPLEMENTED;
    2645             : }
    2646             : 
    2647             : /* void addObserver (in nsINavHistoryObserver observer, [optional] in boolean ownsWeak); */
    2648             : NS_IMETHODIMP nsNavHistoryService::AddObserver(nsINavHistoryObserver *observer, bool ownsWeak)
    2649             : {
    2650             :     return NS_ERROR_NOT_IMPLEMENTED;
    2651             : }
    2652             : 
    2653             : /* void removeObserver (in nsINavHistoryObserver observer); */
    2654             : NS_IMETHODIMP nsNavHistoryService::RemoveObserver(nsINavHistoryObserver *observer)
    2655             : {
    2656             :     return NS_ERROR_NOT_IMPLEMENTED;
    2657             : }
    2658             : 
    2659             : /* void getObservers ([optional] out unsigned long count, [array, size_is (count), retval] out nsINavHistoryObserver observers); */
    2660             : NS_IMETHODIMP nsNavHistoryService::GetObservers(uint32_t *count, nsINavHistoryObserver * **observers)
    2661             : {
    2662             :     return NS_ERROR_NOT_IMPLEMENTED;
    2663             : }
    2664             : 
    2665             : /* void runInBatchMode (in nsINavHistoryBatchCallback aCallback, in nsISupports aClosure); */
    2666             : NS_IMETHODIMP nsNavHistoryService::RunInBatchMode(nsINavHistoryBatchCallback *aCallback, nsISupports *aClosure)
    2667             : {
    2668             :     return NS_ERROR_NOT_IMPLEMENTED;
    2669             : }
    2670             : 
    2671             : /* readonly attribute boolean historyDisabled; */
    2672             : NS_IMETHODIMP nsNavHistoryService::GetHistoryDisabled(bool *aHistoryDisabled)
    2673             : {
    2674             :     return NS_ERROR_NOT_IMPLEMENTED;
    2675             : }
    2676             : 
    2677             : /* void clearEmbedVisits (); */
    2678             : NS_IMETHODIMP nsNavHistoryService::ClearEmbedVisits()
    2679             : {
    2680             :     return NS_ERROR_NOT_IMPLEMENTED;
    2681             : }
    2682             : 
    2683             : /* ACString makeGuid (); */
    2684             : NS_IMETHODIMP nsNavHistoryService::MakeGuid(nsACString & _retval)
    2685             : {
    2686             :     return NS_ERROR_NOT_IMPLEMENTED;
    2687             : }
    2688             : 
    2689             : /* End of implementation class template. */
    2690             : #endif
    2691             : 
    2692             : 
    2693             : /* starting interface:    nsINavHistoryBatchCallback */
    2694             : #define NS_INAVHISTORYBATCHCALLBACK_IID_STR "5a5a9154-95ac-4e3d-90df-558816297407"
    2695             : 
    2696             : #define NS_INAVHISTORYBATCHCALLBACK_IID \
    2697             :   {0x5a5a9154, 0x95ac, 0x4e3d, \
    2698             :     { 0x90, 0xdf, 0x55, 0x88, 0x16, 0x29, 0x74, 0x07 }}
    2699             : 
    2700             : class NS_NO_VTABLE nsINavHistoryBatchCallback : public nsISupports {
    2701             :  public:
    2702             : 
    2703             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVHISTORYBATCHCALLBACK_IID)
    2704             : 
    2705             :   /* void runBatched (in nsISupports aUserData); */
    2706             :   NS_IMETHOD RunBatched(nsISupports *aUserData) = 0;
    2707             : 
    2708             : };
    2709             : 
    2710             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINavHistoryBatchCallback, NS_INAVHISTORYBATCHCALLBACK_IID)
    2711             : 
    2712             : /* Use this macro when declaring classes that implement this interface. */
    2713             : #define NS_DECL_NSINAVHISTORYBATCHCALLBACK \
    2714             :   NS_IMETHOD RunBatched(nsISupports *aUserData) override; 
    2715             : 
    2716             : /* Use this macro when declaring the members of this interface when the
    2717             :    class doesn't implement the interface. This is useful for forwarding. */
    2718             : #define NS_DECL_NON_VIRTUAL_NSINAVHISTORYBATCHCALLBACK \
    2719             :   nsresult RunBatched(nsISupports *aUserData); 
    2720             : 
    2721             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
    2722             : #define NS_FORWARD_NSINAVHISTORYBATCHCALLBACK(_to) \
    2723             :   NS_IMETHOD RunBatched(nsISupports *aUserData) override { return _to RunBatched(aUserData); } 
    2724             : 
    2725             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
    2726             : #define NS_FORWARD_SAFE_NSINAVHISTORYBATCHCALLBACK(_to) \
    2727             :   NS_IMETHOD RunBatched(nsISupports *aUserData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunBatched(aUserData); } 
    2728             : 
    2729             : #if 0
    2730             : /* Use the code below as a template for the implementation class for this interface. */
    2731             : 
    2732             : /* Header file */
    2733             : class nsNavHistoryBatchCallback : public nsINavHistoryBatchCallback
    2734             : {
    2735             : public:
    2736             :   NS_DECL_ISUPPORTS
    2737             :   NS_DECL_NSINAVHISTORYBATCHCALLBACK
    2738             : 
    2739             :   nsNavHistoryBatchCallback();
    2740             : 
    2741             : private:
    2742             :   ~nsNavHistoryBatchCallback();
    2743             : 
    2744             : protected:
    2745             :   /* additional members */
    2746             : };
    2747             : 
    2748             : /* Implementation file */
    2749             : NS_IMPL_ISUPPORTS(nsNavHistoryBatchCallback, nsINavHistoryBatchCallback)
    2750             : 
    2751             : nsNavHistoryBatchCallback::nsNavHistoryBatchCallback()
    2752             : {
    2753             :   /* member initializers and constructor code */
    2754             : }
    2755             : 
    2756             : nsNavHistoryBatchCallback::~nsNavHistoryBatchCallback()
    2757             : {
    2758             :   /* destructor code */
    2759             : }
    2760             : 
    2761             : /* void runBatched (in nsISupports aUserData); */
    2762             : NS_IMETHODIMP nsNavHistoryBatchCallback::RunBatched(nsISupports *aUserData)
    2763             : {
    2764             :     return NS_ERROR_NOT_IMPLEMENTED;
    2765             : }
    2766             : 
    2767             : /* End of implementation class template. */
    2768             : #endif
    2769             : 
    2770             : 
    2771             : #endif /* __gen_nsINavHistoryService_h__ */

Generated by: LCOV version 1.13