1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_DataStoreCallbacks_h
8 #define mozilla_dom_DataStoreCallbacks_h
10 #include "nsISupports.h"
17 class DataStoreDBCallback
20 NS_IMETHOD_(MozExternalRefCountType
) AddRef(void) = 0;
21 NS_IMETHOD_(MozExternalRefCountType
) Release(void) = 0;
29 virtual void Run(DataStoreDB
* aDb
, RunStatus aStatus
) = 0;
32 virtual ~DataStoreDBCallback()
37 class DataStoreRevisionCallback
40 NS_IMETHOD_(MozExternalRefCountType
) AddRef(void) = 0;
41 NS_IMETHOD_(MozExternalRefCountType
) Release(void) = 0;
43 virtual void Run(const nsAString
& aRevisionID
) = 0;
46 virtual ~DataStoreRevisionCallback()
52 } // mozilla namespace
54 #endif // mozilla_dom_DataStoreCallbacks_h