2 * Copyright © 2001, 2004 Philip Langdale
3 * Copyright © 2004 Christian Persch
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * $Id: GlobalHistory.h 6952 2007-03-11 19:42:02Z chpe $
22 #ifndef EPHY_GLOBAL_HISTORY_H
23 #define EPHY_GLOBAL_HISTORY_H
25 #ifdef HAVE_NSIGLOBALHISTORY3_H
26 #include <nsIGlobalHistory3.h>
28 #include <nsIGlobalHistory2.h>
29 #endif /* HAVE_NSIGLOBALHISTORY3_H */
31 #include <nsAutoPtr.h>
34 #include "ephy-history.h"
36 #include "EphyHistoryListener.h"
38 #define EPHY_GLOBALHISTORY_CLASSNAME "Epiphany Global History Implementation"
40 #define EPHY_GLOBALHISTORY_CID \
44 { 0xb7, 0x9e, 0xf7, 0xaa, 0x49, 0xeb, 0x6a, 0x15} \
47 #ifdef HAVE_NSIGLOBALHISTORY3_H
48 class MozGlobalHistory
: public nsIGlobalHistory3
50 class MozGlobalHistory
: public nsIGlobalHistory2
51 #endif /* HAVE_NSIGLOBALHISTORY3_H */
55 virtual ~MozGlobalHistory();
58 NS_DECL_NSIGLOBALHISTORY2
59 #ifdef HAVE_NSIGLOBALHISTORY3_H
60 NS_DECL_NSIGLOBALHISTORY3
61 #endif /* HAVE_NSIGLOBALHISTORY3_H */
64 EphyHistory
*mGlobalHistory
;
65 nsRefPtr
<EphyHistoryListener
> mHistoryListener
;
68 #endif /* EPHY_GLOBAL_HISTORY_H */