xpcom/base/nsIDebug.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5
michael@0 6 #include "nsISupports.idl"
michael@0 7
michael@0 8 /**
michael@0 9 * For use by consumers in scripted languages (JavaScript, Java, Python,
michael@0 10 * Perl, ...).
michael@0 11 *
michael@0 12 * @note C/C++ consumers who are planning to use the nsIDebug interface with
michael@0 13 * the "@mozilla.org/xpcom;1" contract should use NS_DebugBreak from xpcom
michael@0 14 * glue instead.
michael@0 15 *
michael@0 16 */
michael@0 17
michael@0 18 [scriptable, uuid(3bf0c3d7-3bd9-4cf2-a971-33572c503e1e)]
michael@0 19 interface nsIDebug : nsISupports
michael@0 20 {
michael@0 21 /**
michael@0 22 * Show an assertion and trigger nsIDebug.break().
michael@0 23 *
michael@0 24 * @param aStr assertion message
michael@0 25 * @param aExpr expression that failed
michael@0 26 * @param aFile file containing assertion
michael@0 27 * @param aLine line number of assertion
michael@0 28 *
michael@0 29 */
michael@0 30 void assertion(in string aStr,
michael@0 31 in string aExpr,
michael@0 32 in string aFile,
michael@0 33 in long aLine);
michael@0 34
michael@0 35 /**
michael@0 36 * Show a warning.
michael@0 37 *
michael@0 38 * @param aStr warning message
michael@0 39 * @param aFile file containing assertion
michael@0 40 * @param aLine line number of assertion
michael@0 41 */
michael@0 42 void warning(in string aStr,
michael@0 43 in string aFile,
michael@0 44 in long aLine);
michael@0 45
michael@0 46 /**
michael@0 47 * Request to break into a debugger.
michael@0 48 *
michael@0 49 * @param aFile file containing break request
michael@0 50 * @param aLine line number of break request
michael@0 51 */
michael@0 52 void break(in string aFile,
michael@0 53 in long aLine);
michael@0 54
michael@0 55 /**
michael@0 56 * Request the process to trigger a fatal abort.
michael@0 57 *
michael@0 58 * @param aFile file containing abort request
michael@0 59 * @param aLine line number of abort request
michael@0 60 */
michael@0 61 void abort(in string aFile,
michael@0 62 in long aLine);
michael@0 63 };
michael@0 64

mercurial