Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * vim: sw=2 ts=2 sts=2 expandtab |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef mozilla_storage_IStorageBindingParamsInternal_h_ |
michael@0 | 8 | #define mozilla_storage_IStorageBindingParamsInternal_h_ |
michael@0 | 9 | |
michael@0 | 10 | #include "nsISupports.h" |
michael@0 | 11 | |
michael@0 | 12 | struct sqlite3_stmt; |
michael@0 | 13 | class mozIStorageError; |
michael@0 | 14 | |
michael@0 | 15 | namespace mozilla { |
michael@0 | 16 | namespace storage { |
michael@0 | 17 | |
michael@0 | 18 | #define ISTORAGEBINDINGPARAMSINTERNAL_IID \ |
michael@0 | 19 | {0x4c43d33a, 0xc620, 0x41b8, {0xba, 0x1d, 0x50, 0xc5, 0xb1, 0xe9, 0x1a, 0x04}} |
michael@0 | 20 | |
michael@0 | 21 | /** |
michael@0 | 22 | * Implementation-only interface for mozIStorageBindingParams. This defines the |
michael@0 | 23 | * set of methods required by the asynchronous execution code in order to |
michael@0 | 24 | * consume the contents stored in mozIStorageBindingParams instances. |
michael@0 | 25 | */ |
michael@0 | 26 | class IStorageBindingParamsInternal : public nsISupports |
michael@0 | 27 | { |
michael@0 | 28 | public: |
michael@0 | 29 | NS_DECLARE_STATIC_IID_ACCESSOR(ISTORAGEBINDINGPARAMSINTERNAL_IID) |
michael@0 | 30 | |
michael@0 | 31 | /** |
michael@0 | 32 | * Binds our stored data to the statement. |
michael@0 | 33 | * |
michael@0 | 34 | * @param aStatement |
michael@0 | 35 | * The statement to bind our data to. |
michael@0 | 36 | * @return nullptr on success, or a mozIStorageError object if an error |
michael@0 | 37 | * occurred. |
michael@0 | 38 | */ |
michael@0 | 39 | virtual already_AddRefed<mozIStorageError> bind(sqlite3_stmt *aStatement) = 0; |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | NS_DEFINE_STATIC_IID_ACCESSOR(IStorageBindingParamsInternal, |
michael@0 | 43 | ISTORAGEBINDINGPARAMSINTERNAL_IID) |
michael@0 | 44 | |
michael@0 | 45 | #define NS_DECL_ISTORAGEBINDINGPARAMSINTERNAL \ |
michael@0 | 46 | already_AddRefed<mozIStorageError> bind(sqlite3_stmt *aStatement); |
michael@0 | 47 | |
michael@0 | 48 | } // storage |
michael@0 | 49 | } // mozilla |
michael@0 | 50 | |
michael@0 | 51 | #endif // mozilla_storage_IStorageBindingParamsInternal_h_ |