Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/docshell/base/nsWebNavigationInfo.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef nsWebNavigationInfo_h__
8
#define nsWebNavigationInfo_h__
9
10
#include "nsIWebNavigationInfo.h"
11
#include "nsCOMPtr.h"
12
#include "nsICategoryManager.h"
13
#include "nsStringFwd.h"
14
#include "mozilla/Attributes.h"
15
16
#define NS_WEBNAVIGATION_INFO_CID \
17
 { 0xf30bc0a2, 0x958b, 0x4287,{0xbf, 0x62, 0xce, 0x38, 0xba, 0x0c, 0x81, 0x1e}}
18
19
class nsWebNavigationInfo final : public nsIWebNavigationInfo
20
{
21
public:
22
0
  nsWebNavigationInfo() {}
23
24
  NS_DECL_ISUPPORTS
25
26
  NS_DECL_NSIWEBNAVIGATIONINFO
27
28
  nsresult Init();
29
30
private:
31
0
  ~nsWebNavigationInfo() {}
32
33
  // Check whether aType is supported.  If this method throws, the
34
  // value of aIsSupported is not changed.
35
  nsresult IsTypeSupportedInternal(const nsCString& aType,
36
                                   uint32_t* aIsSupported);
37
38
  nsCOMPtr<nsICategoryManager> mCategoryManager;
39
};
40
41
#endif  // nsWebNavigationInfo_h__