Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_storage_mozStorageAsyncStatementParams_h_
8 #define mozilla_storage_mozStorageAsyncStatementParams_h_
10 #include "mozIStorageStatementParams.h"
11 #include "nsIXPCScriptable.h"
12 #include "mozilla/Attributes.h"
14 class mozIStorageAsyncStatement;
16 namespace mozilla {
17 namespace storage {
19 class AsyncStatement;
21 /*
22 * Since mozIStorageStatementParams is just a tagging interface we do not have
23 * an async variant.
24 */
25 class AsyncStatementParams MOZ_FINAL : public mozIStorageStatementParams
26 , public nsIXPCScriptable
27 {
28 public:
29 AsyncStatementParams(AsyncStatement *aStatement);
31 // interfaces
32 NS_DECL_ISUPPORTS
33 NS_DECL_MOZISTORAGESTATEMENTPARAMS
34 NS_DECL_NSIXPCSCRIPTABLE
36 protected:
37 AsyncStatement *mStatement;
39 friend class AsyncStatement;
40 };
42 } // namespace storage
43 } // namespace mozilla
45 #endif // mozilla_storage_mozStorageAsyncStatementParams_h_