Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | #ifndef IA32_SETTINGS_H |
michael@0 | 2 | #define IA32_SETTINGS_H |
michael@0 | 3 | |
michael@0 | 4 | #include "libdis.h" |
michael@0 | 5 | |
michael@0 | 6 | typedef struct { |
michael@0 | 7 | /* options */ |
michael@0 | 8 | unsigned char endian, /* 0 = big, 1 = little */ |
michael@0 | 9 | wc_byte, /* wildcard byte */ |
michael@0 | 10 | max_insn, /* max insn size */ |
michael@0 | 11 | sz_addr, /* default address size */ |
michael@0 | 12 | sz_oper, /* default operand size */ |
michael@0 | 13 | sz_byte, /* # bits in byte */ |
michael@0 | 14 | sz_word, /* # bytes in machine word */ |
michael@0 | 15 | sz_dword; /* # bytes in machine dword */ |
michael@0 | 16 | unsigned int id_sp_reg, /* id of stack pointer */ |
michael@0 | 17 | id_fp_reg, /* id of frame pointer */ |
michael@0 | 18 | id_ip_reg, /* id of instruction pointer */ |
michael@0 | 19 | id_flag_reg, /* id of flags register */ |
michael@0 | 20 | offset_gen_regs, /* start of general regs */ |
michael@0 | 21 | offset_seg_regs, /* start of segment regs */ |
michael@0 | 22 | offset_fpu_regs; /* start of floating point regs */ |
michael@0 | 23 | /* user-controlled settings */ |
michael@0 | 24 | enum x86_options options; |
michael@0 | 25 | } ia32_settings_t; |
michael@0 | 26 | |
michael@0 | 27 | #endif |