LCOV - code coverage report
Current view: top level - toolkit/components/parentalcontrols - nsParentalControlsService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 1 1 100.0 %
Date: 2017-07-14 16:53:18 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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/. */
       5             : 
       6             : #ifndef nsParentalControlsService_h__
       7             : #define nsParentalControlsService_h__
       8             : 
       9             : #include "nsIParentalControlsService.h"
      10             : #include "nsCOMPtr.h"
      11             : #include "nsAutoPtr.h"
      12             : #include "nsIURI.h"
      13             : 
      14             : #if defined(XP_WIN)
      15             : // wpcevents.h requires this be elevated
      16             : #if (WINVER < 0x0600)
      17             : # undef WINVER
      18             : # define WINVER 0x0600
      19             : #endif
      20             : #include <wpcapi.h>
      21             : #include <wpcevent.h>
      22             : #endif
      23             : 
      24           6 : class nsParentalControlsService : public nsIParentalControlsService
      25             : {
      26             : public:
      27             :   NS_DECL_ISUPPORTS
      28             :   NS_DECL_NSIPARENTALCONTROLSSERVICE
      29             : 
      30             :   nsParentalControlsService();
      31             : 
      32             : protected:
      33             :   virtual ~nsParentalControlsService();
      34             : 
      35             : private:
      36             :   bool mEnabled;
      37             : #if defined(XP_WIN)
      38             :   REGHANDLE mProvider;
      39             :   IWindowsParentalControls * mPC;
      40             :   void LogFileDownload(bool blocked, nsIURI *aSource, nsIFile *aTarget);
      41             : #endif
      42             : };
      43             : 
      44             : #endif /* nsParentalControlsService_h__ */

Generated by: LCOV version 1.13