Initial import of ephy (rev# 7126) from svn
[ephy-soc.git] / embed / mozilla / GlobalHistory.h
blob1c1e066723a859917fd0a5be63fd8c79a8c03328
1 /*
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)
8 * any later version.
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>
27 #else
28 #include <nsIGlobalHistory2.h>
29 #endif /* HAVE_NSIGLOBALHISTORY3_H */
31 #include <nsAutoPtr.h>
32 #include <nsCOMPtr.h>
34 #include "ephy-history.h"
36 #include "EphyHistoryListener.h"
38 #define EPHY_GLOBALHISTORY_CLASSNAME "Epiphany Global History Implementation"
40 #define EPHY_GLOBALHISTORY_CID \
41 { 0xbe0c42c1, \
42 0x39d4, \
43 0x4271, \
44 { 0xb7, 0x9e, 0xf7, 0xaa, 0x49, 0xeb, 0x6a, 0x15} \
47 #ifdef HAVE_NSIGLOBALHISTORY3_H
48 class MozGlobalHistory: public nsIGlobalHistory3
49 #else
50 class MozGlobalHistory: public nsIGlobalHistory2
51 #endif /* HAVE_NSIGLOBALHISTORY3_H */
53 public:
54 MozGlobalHistory ();
55 virtual ~MozGlobalHistory();
57 NS_DECL_ISUPPORTS
58 NS_DECL_NSIGLOBALHISTORY2
59 #ifdef HAVE_NSIGLOBALHISTORY3_H
60 NS_DECL_NSIGLOBALHISTORY3
61 #endif /* HAVE_NSIGLOBALHISTORY3_H */
63 private:
64 EphyHistory *mGlobalHistory;
65 nsRefPtr<EphyHistoryListener> mHistoryListener;
68 #endif /* EPHY_GLOBAL_HISTORY_H */