Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/docshell/base/nsRefreshTimer.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 nsRefreshTimer_h__
8
#define nsRefreshTimer_h__
9
10
#include "nsINamed.h"
11
#include "nsITimer.h"
12
13
#include "nsCOMPtr.h"
14
15
class nsDocShell;
16
class nsIURI;
17
class nsIPrincipal;
18
19
class nsRefreshTimer : public nsITimerCallback
20
                     , public nsINamed
21
{
22
public:
23
  nsRefreshTimer(nsDocShell* aDocShell,
24
                 nsIURI* aURI,
25
                 nsIPrincipal* aPrincipal,
26
                 int32_t aDelay,
27
                 bool aRepeat,
28
                 bool aMetaRefresh);
29
30
  NS_DECL_THREADSAFE_ISUPPORTS
31
  NS_DECL_NSITIMERCALLBACK
32
  NS_DECL_NSINAMED
33
34
0
  int32_t GetDelay() { return mDelay ;}
35
36
  RefPtr<nsDocShell> mDocShell;
37
  nsCOMPtr<nsIURI> mURI;
38
  nsCOMPtr<nsIPrincipal> mPrincipal;
39
  int32_t mDelay;
40
  bool mRepeat;
41
  bool mMetaRefresh;
42
43
private:
44
  virtual ~nsRefreshTimer();
45
};
46
47
#endif /* nsRefreshTimer_h__ */