Connection.h 879 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_dom_cache_Connection_h
  6. #define mozilla_dom_cache_Connection_h
  7. #include "mozIStorageConnection.h"
  8. #include "nsCOMPtr.h"
  9. namespace mozilla {
  10. namespace dom {
  11. namespace cache {
  12. class Connection final : public mozIStorageConnection
  13. {
  14. public:
  15. explicit Connection(mozIStorageConnection* aBase);
  16. private:
  17. ~Connection();
  18. nsCOMPtr<mozIStorageConnection> mBase;
  19. bool mClosed;
  20. NS_DECL_ISUPPORTS
  21. NS_DECL_MOZISTORAGEASYNCCONNECTION
  22. NS_DECL_MOZISTORAGECONNECTION
  23. };
  24. } // namespace cache
  25. } // namespace dom
  26. } // namespace mozilla
  27. #endif // mozilla_dom_cache_Connection_h