docshell/base/nsWebNavigationInfo.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/nsWebNavigationInfo.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsWebNavigationInfo_h__
    1.10 +#define nsWebNavigationInfo_h__
    1.11 +
    1.12 +#include "nsIWebNavigationInfo.h"
    1.13 +#include "nsCOMPtr.h"
    1.14 +#include "nsICategoryManager.h"
    1.15 +#include "mozilla/Attributes.h"
    1.16 +
    1.17 +class nsCString;
    1.18 +
    1.19 +// Class ID for webnavigationinfo
    1.20 +#define NS_WEBNAVIGATION_INFO_CID \
    1.21 + { 0xf30bc0a2, 0x958b, 0x4287,{0xbf, 0x62, 0xce, 0x38, 0xba, 0x0c, 0x81, 0x1e}}
    1.22 +
    1.23 +class nsWebNavigationInfo MOZ_FINAL : public nsIWebNavigationInfo
    1.24 +{
    1.25 +public:
    1.26 +  nsWebNavigationInfo() {}
    1.27 +  
    1.28 +  NS_DECL_ISUPPORTS
    1.29 +
    1.30 +  NS_DECL_NSIWEBNAVIGATIONINFO
    1.31 +
    1.32 +  nsresult Init();
    1.33 +
    1.34 +private:
    1.35 +  ~nsWebNavigationInfo() {}
    1.36 +  
    1.37 +  // Check whether aType is supported.  If this method throws, the
    1.38 +  // value of aIsSupported is not changed.
    1.39 +  nsresult IsTypeSupportedInternal(const nsCString& aType,
    1.40 +                                   uint32_t* aIsSupported);
    1.41 +  
    1.42 +  nsCOMPtr<nsICategoryManager> mCategoryManager;
    1.43 +};
    1.44 +
    1.45 +#endif  // nsWebNavigationInfo_h__

mercurial