2001-04-13 17:05:16 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
1999-11-06 07:51:05 +03:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code is the Mozilla browser.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
|
|
|
* Communications, Inc. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1999, Mozilla. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Travis Bogard <travis@netscape.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsDSURIContentListener_h__
|
|
|
|
#define nsDSURIContentListener_h__
|
|
|
|
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIURIContentListener.h"
|
2001-04-17 03:05:08 +04:00
|
|
|
#include "nsICategoryManager.h"
|
1999-11-06 07:51:05 +03:00
|
|
|
|
1999-11-12 10:28:25 +03:00
|
|
|
class nsDocShell;
|
1999-11-06 07:51:05 +03:00
|
|
|
|
|
|
|
class nsDSURIContentListener : public nsIURIContentListener
|
|
|
|
{
|
1999-11-12 10:28:25 +03:00
|
|
|
friend class nsDocShell;
|
1999-11-06 07:51:05 +03:00
|
|
|
public:
|
2001-04-13 17:05:16 +04:00
|
|
|
NS_DECL_ISUPPORTS
|
1999-11-06 07:51:05 +03:00
|
|
|
|
2001-04-13 17:05:16 +04:00
|
|
|
NS_DECL_NSIURICONTENTLISTENER
|
1999-11-06 07:51:05 +03:00
|
|
|
|
2001-04-17 03:05:08 +04:00
|
|
|
nsresult Init();
|
|
|
|
|
1999-11-07 13:00:53 +03:00
|
|
|
protected:
|
2001-04-13 17:05:16 +04:00
|
|
|
nsDSURIContentListener();
|
|
|
|
virtual ~nsDSURIContentListener();
|
1999-11-07 13:00:53 +03:00
|
|
|
|
2001-04-13 17:05:16 +04:00
|
|
|
void DocShell(nsDocShell* aDocShell);
|
|
|
|
nsDocShell* DocShell();
|
1999-11-06 07:51:05 +03:00
|
|
|
|
|
|
|
protected:
|
2001-04-13 17:05:16 +04:00
|
|
|
nsDocShell* mDocShell;
|
1999-12-21 03:09:48 +03:00
|
|
|
|
2001-04-13 17:05:16 +04:00
|
|
|
nsIURIContentListener* mParentContentListener; // Weak Reference
|
2001-04-17 03:05:08 +04:00
|
|
|
nsCOMPtr<nsICategoryManager> mCatMgr;
|
1999-11-06 07:51:05 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsDSURIContentListener_h__ */
|