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_DataStoreRevision_h
8 #define mozilla_dom_DataStoreRevision_h
11 #include "nsAutoPtr.h"
12 #include "nsIDOMEventListener.h"
23 class DataStoreRevisionCallback
;
25 class DataStoreRevision MOZ_FINAL
: public nsIDOMEventListener
34 nsresult
AddRevision(JSContext
* aCx
,
35 indexedDB::IDBObjectStore
* aStore
,
37 RevisionType aRevisionType
,
38 DataStoreRevisionCallback
* aCallback
);
40 // nsIDOMEventListener
41 NS_IMETHOD
HandleEvent(nsIDOMEvent
* aEvent
) MOZ_OVERRIDE
;
44 ~DataStoreRevision() {}
45 nsRefPtr
<DataStoreRevisionCallback
> mCallback
;
46 nsRefPtr
<indexedDB::IDBRequest
> mRequest
;
51 } // namespace mozilla
53 #endif // mozilla_dom_DataStoreRevision_h