michael@0: /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * 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 michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsISHEntry; michael@0: michael@0: /** michael@0: * The nsISHTransaction. michael@0: */ michael@0: michael@0: michael@0: [scriptable, uuid(2EDF705F-D252-4971-9F09-71DD0F760DC6)] michael@0: interface nsISHTransaction : nsISupports michael@0: { michael@0: /** michael@0: * The nsISHEntry for the current transaction michael@0: */ michael@0: attribute nsISHEntry sHEntry; michael@0: michael@0: /** michael@0: * The parent of this transaction michael@0: */ michael@0: attribute nsISHTransaction prev; michael@0: michael@0: /** michael@0: * The legitimate child of this transaction michael@0: */ michael@0: attribute nsISHTransaction next; michael@0: michael@0: /** michael@0: * Specifies if this transaction should persist. If not it will be replaced michael@0: * by new additions to the list. michael@0: */ michael@0: attribute boolean persist; michael@0: michael@0: /** michael@0: * Create a transaction with parent and History Entry michael@0: */ michael@0: void create(in nsISHEntry aSHEntry, in nsISHTransaction aPrev); michael@0: }; michael@0: michael@0: %{ C++ michael@0: // {BFD1A792-AD9F-11d3-BDC7-0050040A9B44} michael@0: michael@0: michael@0: #define NS_SHTRANSACTION_CID \ michael@0: {0xbfd1a792, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}} michael@0: michael@0: #define NS_SHTRANSACTION_CONTRACTID \ michael@0: "@mozilla.org/browser/session-history-transaction;1" michael@0: michael@0: %}