michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_quota_quotacommon_h__ michael@0: #define mozilla_dom_quota_quotacommon_h__ michael@0: michael@0: #include "nsAutoPtr.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsDebug.h" michael@0: #include "nsString.h" michael@0: #include "nsTArray.h" michael@0: michael@0: #define BEGIN_QUOTA_NAMESPACE \ michael@0: namespace mozilla { namespace dom { namespace quota { michael@0: #define END_QUOTA_NAMESPACE \ michael@0: } /* namespace quota */ } /* namespace dom */ } /* namespace mozilla */ michael@0: #define USING_QUOTA_NAMESPACE \ michael@0: using namespace mozilla::dom::quota; michael@0: michael@0: #define DSSTORE_FILE_NAME ".DS_Store" michael@0: #define PERMISSION_STORAGE_UNLIMITED "indexedDB-unlimited" michael@0: michael@0: BEGIN_QUOTA_NAMESPACE michael@0: michael@0: void michael@0: AssertIsOnIOThread(); michael@0: michael@0: void michael@0: AssertCurrentThreadOwnsQuotaMutex(); michael@0: michael@0: bool michael@0: IsOnIOThread(); michael@0: michael@0: END_QUOTA_NAMESPACE michael@0: michael@0: #endif // mozilla_dom_quota_quotacommon_h__