docshell/base/nsWebNavigationInfo.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef nsWebNavigationInfo_h__
     7 #define nsWebNavigationInfo_h__
     9 #include "nsIWebNavigationInfo.h"
    10 #include "nsCOMPtr.h"
    11 #include "nsICategoryManager.h"
    12 #include "mozilla/Attributes.h"
    14 class nsCString;
    16 // Class ID for webnavigationinfo
    17 #define NS_WEBNAVIGATION_INFO_CID \
    18  { 0xf30bc0a2, 0x958b, 0x4287,{0xbf, 0x62, 0xce, 0x38, 0xba, 0x0c, 0x81, 0x1e}}
    20 class nsWebNavigationInfo MOZ_FINAL : public nsIWebNavigationInfo
    21 {
    22 public:
    23   nsWebNavigationInfo() {}
    25   NS_DECL_ISUPPORTS
    27   NS_DECL_NSIWEBNAVIGATIONINFO
    29   nsresult Init();
    31 private:
    32   ~nsWebNavigationInfo() {}
    34   // Check whether aType is supported.  If this method throws, the
    35   // value of aIsSupported is not changed.
    36   nsresult IsTypeSupportedInternal(const nsCString& aType,
    37                                    uint32_t* aIsSupported);
    39   nsCOMPtr<nsICategoryManager> mCategoryManager;
    40 };
    42 #endif  // nsWebNavigationInfo_h__

mercurial