xpcom/string/public/nsStringFwd.h

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.

     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/. */
     6 /* nsStringFwd.h --- forward declarations for string classes */
     8 #ifndef nsStringFwd_h___
     9 #define nsStringFwd_h___
    11 #include "nscore.h"
    13 #ifndef MOZILLA_INTERNAL_API
    14 #error Internal string headers are not available from external-linkage code.
    15 #endif
    17   /**
    18    * double-byte (char16_t) string types
    19    */
    21 class nsAString;
    22 class nsSubstringTuple;
    23 class nsString;
    24 class nsAutoString;
    25 class nsDependentString;
    26 class nsDependentSubstring;
    27 class nsPromiseFlatString;
    28 class nsStringComparator;
    29 class nsDefaultStringComparator;
    30 class nsXPIDLString;
    33   /**
    34    * single-byte (char) string types
    35    */
    37 class nsACString;
    38 class nsCSubstringTuple;
    39 class nsCString;
    40 class nsAutoCString;
    41 class nsDependentCString;
    42 class nsDependentCSubstring;
    43 class nsPromiseFlatCString;
    44 class nsCStringComparator;
    45 class nsDefaultCStringComparator;
    46 class nsXPIDLCString;
    49   /**
    50    * typedefs for backwards compatibility
    51    */
    53 typedef nsAString             nsSubstring;
    54 typedef nsACString            nsCSubstring;
    56 typedef nsString              nsAFlatString;
    57 typedef nsSubstring           nsASingleFragmentString;
    59 typedef nsCString             nsAFlatCString;
    60 typedef nsCSubstring          nsASingleFragmentCString;
    63 #endif /* !defined(nsStringFwd_h___) */

mercurial