widget/windows/nsPrintSettingsWin.h

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     2  *
     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/. */
     7 #ifndef nsPrintSettingsWin_h__
     8 #define nsPrintSettingsWin_h__
    10 #include "nsPrintSettingsImpl.h"  
    11 #include "nsIPrintSettingsWin.h"  
    12 #include <windows.h>  
    15 //*****************************************************************************
    16 //***    nsPrintSettingsWin
    17 //*****************************************************************************
    18 class nsPrintSettingsWin : public nsPrintSettings,
    19                            public nsIPrintSettingsWin
    20 {
    21 public:
    22   NS_DECL_ISUPPORTS_INHERITED
    23   NS_DECL_NSIPRINTSETTINGSWIN
    25   nsPrintSettingsWin();
    26   nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
    27   virtual ~nsPrintSettingsWin();
    29   /**
    30    * Makes a new copy
    31    */
    32   virtual nsresult _Clone(nsIPrintSettings **_retval);
    34   /**
    35    * Assigns values
    36    */
    37   virtual nsresult _Assign(nsIPrintSettings* aPS);
    39   /**
    40    * Assignment
    41    */
    42   nsPrintSettingsWin& operator=(const nsPrintSettingsWin& rhs);
    44 protected:
    45   void CopyDevMode(DEVMODEW* aInDevMode, DEVMODEW *& aOutDevMode);
    47   wchar_t*      mDeviceName;
    48   wchar_t*      mDriverName;
    49   LPDEVMODEW mDevMode;
    50 };
    54 #endif /* nsPrintSettingsWin_h__ */

mercurial