other-licenses/7zstub/src/7zip/Archive/7z/7zMethods.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 // 7zMethods.h
     3 #ifndef __7Z_METHODS_H
     4 #define __7Z_METHODS_H
     6 #include "7zMethodID.h"
     8 namespace NArchive {
     9 namespace N7z {
    11 struct CMethodInfo
    12 {
    13   UString Name;
    14   bool EncoderIsAssigned;
    15   bool DecoderIsAssigned;
    16   UInt32 NumInStreams;
    17   UInt32 NumOutStreams;
    18   CLSID Encoder;
    19   CLSID Decoder;
    20   // UString Description;
    21   CSysString FilePath;
    22 };
    24 struct CMethodInfo2: public CMethodInfo
    25 {
    26   CMethodID MethodID;
    27 };
    29 void LoadMethodMap();
    30 bool GetMethodInfo(const CMethodID &methodID, CMethodInfo &methodInfo);
    31 bool GetMethodInfo(const UString &name, CMethodInfo2 &methodInfo);
    33 }}
    35 #endif

mercurial