DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/places/nsINavBookmarksService.idl
 */

#ifndef __gen_nsINavBookmarksService_h__
#define __gen_nsINavBookmarksService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFile; /* forward declaration */

class nsIURI; /* forward declaration */

class nsITransaction; /* forward declaration */

class nsINavHistoryBatchCallback; /* forward declaration */


/* starting interface:    nsINavBookmarkObserver */
#define NS_INAVBOOKMARKOBSERVER_IID_STR "4d00c221-2c4a-47ab-a617-abb324110492"

#define NS_INAVBOOKMARKOBSERVER_IID \
  {0x4d00c221, 0x2c4a, 0x47ab, \
    { 0xa6, 0x17, 0xab, 0xb3, 0x24, 0x11, 0x04, 0x92 }}

class NS_NO_VTABLE nsINavBookmarkObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVBOOKMARKOBSERVER_IID)

  /* readonly attribute boolean skipTags; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSkipTags(bool *aSkipTags) = 0;

  /* readonly attribute boolean skipDescendantsOnItemRemoval; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval) = 0;

  /* void onBeginUpdateBatch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnBeginUpdateBatch(void) = 0;

  /* void onEndUpdateBatch (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnEndUpdateBatch(void) = 0;

  /* void onItemAdded (in long long aItemId, in long long aParentId, in long aIndex, in unsigned short aItemType, in nsIURI aURI, in AUTF8String aTitle, in PRTime aDateAdded, in ACString aGuid, in ACString aParentGuid, in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemAdded(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aTitle, PRTime aDateAdded, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) = 0;

  /* void onItemRemoved (in long long aItemId, in long long aParentId, in long aIndex, in unsigned short aItemType, in nsIURI aURI, in ACString aGuid, in ACString aParentGuid, in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemRemoved(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) = 0;

  /* void onItemChanged (in long long aItemId, in ACString aProperty, in boolean aIsAnnotationProperty, in AUTF8String aNewValue, in PRTime aLastModified, in unsigned short aItemType, in long long aParentId, in ACString aGuid, in ACString aParentGuid, in AUTF8String aOldValue, in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemChanged(int64_t aItemId, const nsACString& aProperty, bool aIsAnnotationProperty, const nsACString& aNewValue, PRTime aLastModified, uint16_t aItemType, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid, const nsACString& aOldValue, uint16_t aSource) = 0;

  /* void onItemVisited (in long long aItemId, in long long aVisitId, in PRTime aTime, in unsigned long aTransitionType, in nsIURI aURI, in long long aParentId, in ACString aGuid, in ACString aParentGuid); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemVisited(int64_t aItemId, int64_t aVisitId, PRTime aTime, uint32_t aTransitionType, nsIURI *aURI, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid) = 0;

  /* void onItemMoved (in long long aItemId, in long long aOldParentId, in long aOldIndex, in long long aNewParentId, in long aNewIndex, in unsigned short aItemType, in ACString aGuid, in ACString aOldParentGuid, in ACString aNewParentGuid, in unsigned short aSource, in AUTF8String aURI); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnItemMoved(int64_t aItemId, int64_t aOldParentId, int32_t aOldIndex, int64_t aNewParentId, int32_t aNewIndex, uint16_t aItemType, const nsACString& aGuid, const nsACString& aOldParentGuid, const nsACString& aNewParentGuid, uint16_t aSource, const nsACString& aURI) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINavBookmarkObserver, NS_INAVBOOKMARKOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINAVBOOKMARKOBSERVER \
  NS_IMETHOD GetSkipTags(bool *aSkipTags) override; \
  NS_IMETHOD GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval) override; \
  NS_IMETHOD OnBeginUpdateBatch(void) override; \
  NS_IMETHOD OnEndUpdateBatch(void) override; \
  NS_IMETHOD OnItemAdded(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aTitle, PRTime aDateAdded, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) override; \
  NS_IMETHOD OnItemRemoved(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) override; \
  NS_IMETHOD OnItemChanged(int64_t aItemId, const nsACString& aProperty, bool aIsAnnotationProperty, const nsACString& aNewValue, PRTime aLastModified, uint16_t aItemType, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid, const nsACString& aOldValue, uint16_t aSource) override; \
  NS_IMETHOD OnItemVisited(int64_t aItemId, int64_t aVisitId, PRTime aTime, uint32_t aTransitionType, nsIURI *aURI, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid) override; \
  NS_IMETHOD OnItemMoved(int64_t aItemId, int64_t aOldParentId, int32_t aOldIndex, int64_t aNewParentId, int32_t aNewIndex, uint16_t aItemType, const nsACString& aGuid, const nsACString& aOldParentGuid, const nsACString& aNewParentGuid, uint16_t aSource, const nsACString& aURI) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSINAVBOOKMARKOBSERVER \
  nsresult GetSkipTags(bool *aSkipTags); \
  nsresult GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval); \
  nsresult OnBeginUpdateBatch(void); \
  nsresult OnEndUpdateBatch(void); \
  nsresult OnItemAdded(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aTitle, PRTime aDateAdded, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource); \
  nsresult OnItemRemoved(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource); \
  nsresult OnItemChanged(int64_t aItemId, const nsACString& aProperty, bool aIsAnnotationProperty, const nsACString& aNewValue, PRTime aLastModified, uint16_t aItemType, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid, const nsACString& aOldValue, uint16_t aSource); \
  nsresult OnItemVisited(int64_t aItemId, int64_t aVisitId, PRTime aTime, uint32_t aTransitionType, nsIURI *aURI, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid); \
  nsresult OnItemMoved(int64_t aItemId, int64_t aOldParentId, int32_t aOldIndex, int64_t aNewParentId, int32_t aNewIndex, uint16_t aItemType, const nsACString& aGuid, const nsACString& aOldParentGuid, const nsACString& aNewParentGuid, uint16_t aSource, const nsACString& aURI); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINAVBOOKMARKOBSERVER(_to) \
  NS_IMETHOD GetSkipTags(bool *aSkipTags) override { return _to GetSkipTags(aSkipTags); } \
  NS_IMETHOD GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval) override { return _to GetSkipDescendantsOnItemRemoval(aSkipDescendantsOnItemRemoval); } \
  NS_IMETHOD OnBeginUpdateBatch(void) override { return _to OnBeginUpdateBatch(); } \
  NS_IMETHOD OnEndUpdateBatch(void) override { return _to OnEndUpdateBatch(); } \
  NS_IMETHOD OnItemAdded(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aTitle, PRTime aDateAdded, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) override { return _to OnItemAdded(aItemId, aParentId, aIndex, aItemType, aURI, aTitle, aDateAdded, aGuid, aParentGuid, aSource); } \
  NS_IMETHOD OnItemRemoved(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) override { return _to OnItemRemoved(aItemId, aParentId, aIndex, aItemType, aURI, aGuid, aParentGuid, aSource); } \
  NS_IMETHOD OnItemChanged(int64_t aItemId, const nsACString& aProperty, bool aIsAnnotationProperty, const nsACString& aNewValue, PRTime aLastModified, uint16_t aItemType, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid, const nsACString& aOldValue, uint16_t aSource) override { return _to OnItemChanged(aItemId, aProperty, aIsAnnotationProperty, aNewValue, aLastModified, aItemType, aParentId, aGuid, aParentGuid, aOldValue, aSource); } \
  NS_IMETHOD OnItemVisited(int64_t aItemId, int64_t aVisitId, PRTime aTime, uint32_t aTransitionType, nsIURI *aURI, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid) override { return _to OnItemVisited(aItemId, aVisitId, aTime, aTransitionType, aURI, aParentId, aGuid, aParentGuid); } \
  NS_IMETHOD OnItemMoved(int64_t aItemId, int64_t aOldParentId, int32_t aOldIndex, int64_t aNewParentId, int32_t aNewIndex, uint16_t aItemType, const nsACString& aGuid, const nsACString& aOldParentGuid, const nsACString& aNewParentGuid, uint16_t aSource, const nsACString& aURI) override { return _to OnItemMoved(aItemId, aOldParentId, aOldIndex, aNewParentId, aNewIndex, aItemType, aGuid, aOldParentGuid, aNewParentGuid, aSource, aURI); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINAVBOOKMARKOBSERVER(_to) \
  NS_IMETHOD GetSkipTags(bool *aSkipTags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipTags(aSkipTags); } \
  NS_IMETHOD GetSkipDescendantsOnItemRemoval(bool *aSkipDescendantsOnItemRemoval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipDescendantsOnItemRemoval(aSkipDescendantsOnItemRemoval); } \
  NS_IMETHOD OnBeginUpdateBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginUpdateBatch(); } \
  NS_IMETHOD OnEndUpdateBatch(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndUpdateBatch(); } \
  NS_IMETHOD OnItemAdded(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aTitle, PRTime aDateAdded, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemAdded(aItemId, aParentId, aIndex, aItemType, aURI, aTitle, aDateAdded, aGuid, aParentGuid, aSource); } \
  NS_IMETHOD OnItemRemoved(int64_t aItemId, int64_t aParentId, int32_t aIndex, uint16_t aItemType, nsIURI *aURI, const nsACString& aGuid, const nsACString& aParentGuid, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemRemoved(aItemId, aParentId, aIndex, aItemType, aURI, aGuid, aParentGuid, aSource); } \
  NS_IMETHOD OnItemChanged(int64_t aItemId, const nsACString& aProperty, bool aIsAnnotationProperty, const nsACString& aNewValue, PRTime aLastModified, uint16_t aItemType, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid, const nsACString& aOldValue, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemChanged(aItemId, aProperty, aIsAnnotationProperty, aNewValue, aLastModified, aItemType, aParentId, aGuid, aParentGuid, aOldValue, aSource); } \
  NS_IMETHOD OnItemVisited(int64_t aItemId, int64_t aVisitId, PRTime aTime, uint32_t aTransitionType, nsIURI *aURI, int64_t aParentId, const nsACString& aGuid, const nsACString& aParentGuid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemVisited(aItemId, aVisitId, aTime, aTransitionType, aURI, aParentId, aGuid, aParentGuid); } \
  NS_IMETHOD OnItemMoved(int64_t aItemId, int64_t aOldParentId, int32_t aOldIndex, int64_t aNewParentId, int32_t aNewIndex, uint16_t aItemType, const nsACString& aGuid, const nsACString& aOldParentGuid, const nsACString& aNewParentGuid, uint16_t aSource, const nsACString& aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnItemMoved(aItemId, aOldParentId, aOldIndex, aNewParentId, aNewIndex, aItemType, aGuid, aOldParentGuid, aNewParentGuid, aSource, aURI); } 


/* starting interface:    nsINavBookmarksService */
#define NS_INAVBOOKMARKSSERVICE_IID_STR "24533891-afa6-4663-b72d-3143d03f1b04"

#define NS_INAVBOOKMARKSSERVICE_IID \
  {0x24533891, 0xafa6, 0x4663, \
    { 0xb7, 0x2d, 0x31, 0x43, 0xd0, 0x3f, 0x1b, 0x04 }}

class NS_NO_VTABLE nsINavBookmarksService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INAVBOOKMARKSSERVICE_IID)

  /* readonly attribute long long placesRoot; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPlacesRoot(int64_t *aPlacesRoot) = 0;

  /* readonly attribute long long bookmarksMenuFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBookmarksMenuFolder(int64_t *aBookmarksMenuFolder) = 0;

  /* readonly attribute long long tagsFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTagsFolder(int64_t *aTagsFolder) = 0;

  /* readonly attribute long long unfiledBookmarksFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUnfiledBookmarksFolder(int64_t *aUnfiledBookmarksFolder) = 0;

  /* readonly attribute long long toolbarFolder; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetToolbarFolder(int64_t *aToolbarFolder) = 0;

  /* readonly attribute long long totalSyncChanges; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTotalSyncChanges(int64_t *aTotalSyncChanges) = 0;

  enum {
    DEFAULT_INDEX = -1,
    TYPE_BOOKMARK = 1U,
    TYPE_FOLDER = 2U,
    TYPE_SEPARATOR = 3U,
    TYPE_DYNAMIC_CONTAINER = 4U,
    SOURCE_DEFAULT = 0U,
    SOURCE_SYNC = 1U,
    SOURCE_IMPORT = 2U,
    SOURCE_SYNC_REPARENT_REMOVED_FOLDER_CHILDREN = 4U,
    SOURCE_RESTORE = 5U,
    SOURCE_RESTORE_ON_STARTUP = 6U,
    SYNC_STATUS_UNKNOWN = 0U,
    SYNC_STATUS_NEW = 1U,
    SYNC_STATUS_NORMAL = 2U
  };

  /* long long insertBookmark (in long long aParentId, in nsIURI aURI, in long aIndex, in AUTF8String aTitle, [optional] in ACString aGuid, [optional] in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InsertBookmark(int64_t aParentId, nsIURI *aURI, int32_t aIndex, const nsACString& aTitle, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) = 0;

  /* void removeItem (in long long aItemId, [optional] in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveItem(int64_t aItemId, uint16_t aSource) = 0;

  /* long long createFolder (in long long aParentFolder, in AUTF8String name, in long index, [optional] in ACString aGuid, [optional] in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateFolder(int64_t aParentFolder, const nsACString& name, int32_t index, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) = 0;

  /* void setItemTitle (in long long aItemId, in AUTF8String aTitle, [optional] in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetItemTitle(int64_t aItemId, const nsACString& aTitle, uint16_t aSource) = 0;

  /* AUTF8String getItemTitle (in long long aItemId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetItemTitle(int64_t aItemId, nsACString& _retval) = 0;

  /* void setItemLastModified (in long long aItemId, in PRTime aLastModified, [optional] in unsigned short aSource); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetItemLastModified(int64_t aItemId, PRTime aLastModified, uint16_t aSource) = 0;

  /* long long getFolderIdForItem (in long long aItemId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFolderIdForItem(int64_t aItemId, int64_t *_retval) = 0;

  /* void addObserver (in nsINavBookmarkObserver observer, [optional] in boolean ownsWeak); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddObserver(nsINavBookmarkObserver *observer, bool ownsWeak) = 0;

  /* void removeObserver (in nsINavBookmarkObserver observer); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveObserver(nsINavBookmarkObserver *observer) = 0;

  /* void getObservers ([optional] out unsigned long count, [array, size_is (count), retval] out nsINavBookmarkObserver observers); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetObservers(uint32_t *count, nsINavBookmarkObserver ***observers) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINavBookmarksService, NS_INAVBOOKMARKSSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINAVBOOKMARKSSERVICE \
  NS_IMETHOD GetPlacesRoot(int64_t *aPlacesRoot) override; \
  NS_IMETHOD GetBookmarksMenuFolder(int64_t *aBookmarksMenuFolder) override; \
  NS_IMETHOD GetTagsFolder(int64_t *aTagsFolder) override; \
  NS_IMETHOD GetUnfiledBookmarksFolder(int64_t *aUnfiledBookmarksFolder) override; \
  NS_IMETHOD GetToolbarFolder(int64_t *aToolbarFolder) override; \
  NS_IMETHOD GetTotalSyncChanges(int64_t *aTotalSyncChanges) override; \
  NS_IMETHOD InsertBookmark(int64_t aParentId, nsIURI *aURI, int32_t aIndex, const nsACString& aTitle, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) override; \
  NS_IMETHOD RemoveItem(int64_t aItemId, uint16_t aSource) override; \
  NS_IMETHOD CreateFolder(int64_t aParentFolder, const nsACString& name, int32_t index, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) override; \
  NS_IMETHOD SetItemTitle(int64_t aItemId, const nsACString& aTitle, uint16_t aSource) override; \
  NS_IMETHOD GetItemTitle(int64_t aItemId, nsACString& _retval) override; \
  NS_IMETHOD SetItemLastModified(int64_t aItemId, PRTime aLastModified, uint16_t aSource) override; \
  NS_IMETHOD GetFolderIdForItem(int64_t aItemId, int64_t *_retval) override; \
  NS_IMETHOD AddObserver(nsINavBookmarkObserver *observer, bool ownsWeak) override; \
  NS_IMETHOD RemoveObserver(nsINavBookmarkObserver *observer) override; \
  NS_IMETHOD GetObservers(uint32_t *count, nsINavBookmarkObserver ***observers) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSINAVBOOKMARKSSERVICE \
  nsresult GetPlacesRoot(int64_t *aPlacesRoot); \
  nsresult GetBookmarksMenuFolder(int64_t *aBookmarksMenuFolder); \
  nsresult GetTagsFolder(int64_t *aTagsFolder); \
  nsresult GetUnfiledBookmarksFolder(int64_t *aUnfiledBookmarksFolder); \
  nsresult GetToolbarFolder(int64_t *aToolbarFolder); \
  nsresult GetTotalSyncChanges(int64_t *aTotalSyncChanges); \
  nsresult InsertBookmark(int64_t aParentId, nsIURI *aURI, int32_t aIndex, const nsACString& aTitle, const nsACString& aGuid, uint16_t aSource, int64_t *_retval); \
  nsresult RemoveItem(int64_t aItemId, uint16_t aSource); \
  nsresult CreateFolder(int64_t aParentFolder, const nsACString& name, int32_t index, const nsACString& aGuid, uint16_t aSource, int64_t *_retval); \
  nsresult SetItemTitle(int64_t aItemId, const nsACString& aTitle, uint16_t aSource); \
  nsresult GetItemTitle(int64_t aItemId, nsACString& _retval); \
  nsresult SetItemLastModified(int64_t aItemId, PRTime aLastModified, uint16_t aSource); \
  nsresult GetFolderIdForItem(int64_t aItemId, int64_t *_retval); \
  nsresult AddObserver(nsINavBookmarkObserver *observer, bool ownsWeak); \
  nsresult RemoveObserver(nsINavBookmarkObserver *observer); \
  nsresult GetObservers(uint32_t *count, nsINavBookmarkObserver ***observers); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINAVBOOKMARKSSERVICE(_to) \
  NS_IMETHOD GetPlacesRoot(int64_t *aPlacesRoot) override { return _to GetPlacesRoot(aPlacesRoot); } \
  NS_IMETHOD GetBookmarksMenuFolder(int64_t *aBookmarksMenuFolder) override { return _to GetBookmarksMenuFolder(aBookmarksMenuFolder); } \
  NS_IMETHOD GetTagsFolder(int64_t *aTagsFolder) override { return _to GetTagsFolder(aTagsFolder); } \
  NS_IMETHOD GetUnfiledBookmarksFolder(int64_t *aUnfiledBookmarksFolder) override { return _to GetUnfiledBookmarksFolder(aUnfiledBookmarksFolder); } \
  NS_IMETHOD GetToolbarFolder(int64_t *aToolbarFolder) override { return _to GetToolbarFolder(aToolbarFolder); } \
  NS_IMETHOD GetTotalSyncChanges(int64_t *aTotalSyncChanges) override { return _to GetTotalSyncChanges(aTotalSyncChanges); } \
  NS_IMETHOD InsertBookmark(int64_t aParentId, nsIURI *aURI, int32_t aIndex, const nsACString& aTitle, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) override { return _to InsertBookmark(aParentId, aURI, aIndex, aTitle, aGuid, aSource, _retval); } \
  NS_IMETHOD RemoveItem(int64_t aItemId, uint16_t aSource) override { return _to RemoveItem(aItemId, aSource); } \
  NS_IMETHOD CreateFolder(int64_t aParentFolder, const nsACString& name, int32_t index, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) override { return _to CreateFolder(aParentFolder, name, index, aGuid, aSource, _retval); } \
  NS_IMETHOD SetItemTitle(int64_t aItemId, const nsACString& aTitle, uint16_t aSource) override { return _to SetItemTitle(aItemId, aTitle, aSource); } \
  NS_IMETHOD GetItemTitle(int64_t aItemId, nsACString& _retval) override { return _to GetItemTitle(aItemId, _retval); } \
  NS_IMETHOD SetItemLastModified(int64_t aItemId, PRTime aLastModified, uint16_t aSource) override { return _to SetItemLastModified(aItemId, aLastModified, aSource); } \
  NS_IMETHOD GetFolderIdForItem(int64_t aItemId, int64_t *_retval) override { return _to GetFolderIdForItem(aItemId, _retval); } \
  NS_IMETHOD AddObserver(nsINavBookmarkObserver *observer, bool ownsWeak) override { return _to AddObserver(observer, ownsWeak); } \
  NS_IMETHOD RemoveObserver(nsINavBookmarkObserver *observer) override { return _to RemoveObserver(observer); } \
  NS_IMETHOD GetObservers(uint32_t *count, nsINavBookmarkObserver ***observers) override { return _to GetObservers(count, observers); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINAVBOOKMARKSSERVICE(_to) \
  NS_IMETHOD GetPlacesRoot(int64_t *aPlacesRoot) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlacesRoot(aPlacesRoot); } \
  NS_IMETHOD GetBookmarksMenuFolder(int64_t *aBookmarksMenuFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBookmarksMenuFolder(aBookmarksMenuFolder); } \
  NS_IMETHOD GetTagsFolder(int64_t *aTagsFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagsFolder(aTagsFolder); } \
  NS_IMETHOD GetUnfiledBookmarksFolder(int64_t *aUnfiledBookmarksFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnfiledBookmarksFolder(aUnfiledBookmarksFolder); } \
  NS_IMETHOD GetToolbarFolder(int64_t *aToolbarFolder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToolbarFolder(aToolbarFolder); } \
  NS_IMETHOD GetTotalSyncChanges(int64_t *aTotalSyncChanges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalSyncChanges(aTotalSyncChanges); } \
  NS_IMETHOD InsertBookmark(int64_t aParentId, nsIURI *aURI, int32_t aIndex, const nsACString& aTitle, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertBookmark(aParentId, aURI, aIndex, aTitle, aGuid, aSource, _retval); } \
  NS_IMETHOD RemoveItem(int64_t aItemId, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItem(aItemId, aSource); } \
  NS_IMETHOD CreateFolder(int64_t aParentFolder, const nsACString& name, int32_t index, const nsACString& aGuid, uint16_t aSource, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateFolder(aParentFolder, name, index, aGuid, aSource, _retval); } \
  NS_IMETHOD SetItemTitle(int64_t aItemId, const nsACString& aTitle, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItemTitle(aItemId, aTitle, aSource); } \
  NS_IMETHOD GetItemTitle(int64_t aItemId, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemTitle(aItemId, _retval); } \
  NS_IMETHOD SetItemLastModified(int64_t aItemId, PRTime aLastModified, uint16_t aSource) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetItemLastModified(aItemId, aLastModified, aSource); } \
  NS_IMETHOD GetFolderIdForItem(int64_t aItemId, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolderIdForItem(aItemId, _retval); } \
  NS_IMETHOD AddObserver(nsINavBookmarkObserver *observer, bool ownsWeak) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(observer, ownsWeak); } \
  NS_IMETHOD RemoveObserver(nsINavBookmarkObserver *observer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(observer); } \
  NS_IMETHOD GetObservers(uint32_t *count, nsINavBookmarkObserver ***observers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObservers(count, observers); } 


#endif /* __gen_nsINavBookmarksService_h__ */