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 nsIFileStorage_h__ michael@0: #define nsIFileStorage_h__ michael@0: michael@0: #include "nsISupports.h" michael@0: michael@0: #define NS_FILESTORAGE_IID \ michael@0: {0x6278f453, 0xd557, 0x4a55, \ michael@0: { 0x99, 0x3e, 0xf4, 0x69, 0xe2, 0xa5, 0xe1, 0xd0 } } michael@0: michael@0: class nsIFileStorage : public nsISupports michael@0: { michael@0: public: michael@0: NS_DECLARE_STATIC_IID_ACCESSOR(NS_FILESTORAGE_IID) michael@0: michael@0: NS_IMETHOD_(const nsACString&) michael@0: Id() = 0; michael@0: michael@0: // Whether or not the storage has been invalidated. If it has then no further michael@0: // operations for this storage will be allowed to run. michael@0: NS_IMETHOD_(bool) michael@0: IsInvalidated() = 0; michael@0: michael@0: NS_IMETHOD_(bool) michael@0: IsShuttingDown() = 0; michael@0: michael@0: NS_IMETHOD_(void) michael@0: SetThreadLocals() = 0; michael@0: michael@0: NS_IMETHOD_(void) michael@0: UnsetThreadLocals() = 0; michael@0: }; michael@0: michael@0: NS_DEFINE_STATIC_IID_ACCESSOR(nsIFileStorage, NS_FILESTORAGE_IID) michael@0: michael@0: #define NS_DECL_NSIFILESTORAGE \ michael@0: NS_IMETHOD_(const nsACString&) \ michael@0: Id() MOZ_OVERRIDE; \ michael@0: \ michael@0: NS_IMETHOD_(bool) \ michael@0: IsInvalidated() MOZ_OVERRIDE; \ michael@0: \ michael@0: NS_IMETHOD_(bool) \ michael@0: IsShuttingDown() MOZ_OVERRIDE; \ michael@0: \ michael@0: NS_IMETHOD_(void) \ michael@0: SetThreadLocals() MOZ_OVERRIDE; \ michael@0: \ michael@0: NS_IMETHOD_(void) \ michael@0: UnsetThreadLocals() MOZ_OVERRIDE; michael@0: michael@0: #endif // nsIFileStorage_h__