2 * Copyright (C) 2007 Sergey Yanovich <ynvich@gmail.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef AASESSIONHISTORY_H
21 #define AASESSIONHISTORY_H 1
23 #define AA_SESSIONHISTORY_CID \
24 {0x4e0d5d2f, 0x1ed7, 0x46a2, {0xb7, 0x20, 0x36, 0x9a, 0x91, 0xa9, 0x03, 0x41}}
25 #define AA_SESSIONHISTORY_CONTRACT_ID "@aasii.org/view/session-history;1"
29 class aaSessionHistory
: public nsISHistory
,
30 public nsISHistoryInternal
,
31 public nsIWebNavigation
,
32 public nsIInterfaceRequestor
36 virtual ~aaSessionHistory();
39 NS_DECL_NSISHISTORYINTERNAL
40 NS_DECL_NSIWEBNAVIGATION
41 NS_DECL_NSIINTERFACEREQUESTOR
43 nsresult
Init() {return mSH
&& mSHI
&& mWN
? NS_OK
: NS_ERROR_FAILURE
;}
45 friend class aaViewTest
;
47 nsIDocShell
* mRootDocShell
;
48 nsCOMPtr
<aaISession
> mSession
;
49 nsCOMPtr
<nsISHistory
> mSH
;
50 nsCOMPtr
<nsISHistoryInternal
> mSHI
;
51 nsCOMPtr
<nsIWebNavigation
> mWN
;
54 #endif /* AASESSIONHISTORY_H */
56 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
57 /* vim:set ts=2 sw=2 sts=2 et cindent tw=79 ft=cpp: */