js/src/NamespaceImports.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.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 * vim: set ts=8 sts=4 et sw=4 tw=99:
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 // This file imports some common JS:: names into the js namespace so we can
michael@0 8 // make unqualified references to them.
michael@0 9
michael@0 10 #ifndef NamespaceImports_h
michael@0 11 #define NamespaceImports_h
michael@0 12
michael@0 13 // These includes are needed these for some typedefs (e.g. HandleValue) and
michael@0 14 // functions (e.g. NullValue())...
michael@0 15 #include "js/CallNonGenericMethod.h"
michael@0 16 #include "js/TypeDecls.h"
michael@0 17 #include "js/Value.h"
michael@0 18
michael@0 19 // ... but we do forward declarations of the structs and classes not pulled in
michael@0 20 // by the headers included above.
michael@0 21 namespace JS {
michael@0 22
michael@0 23 class Latin1CharsZ;
michael@0 24 class ConstTwoByteChars;
michael@0 25 class TwoByteChars;
michael@0 26
michael@0 27 class AutoFunctionVector;
michael@0 28 class AutoIdVector;
michael@0 29 class AutoObjectVector;
michael@0 30 class AutoScriptVector;
michael@0 31 class AutoValueVector;
michael@0 32
michael@0 33 class AutoIdArray;
michael@0 34
michael@0 35 class AutoGCRooter;
michael@0 36 template <typename T> class AutoVectorRooter;
michael@0 37 template<typename K, typename V> class AutoHashMapRooter;
michael@0 38 template<typename T> class AutoHashSetRooter;
michael@0 39
michael@0 40 class SourceBufferHolder;
michael@0 41
michael@0 42 class HandleValueArray;
michael@0 43
michael@0 44 }
michael@0 45
michael@0 46 // Do the importing.
michael@0 47 namespace js {
michael@0 48
michael@0 49 using JS::Value;
michael@0 50 using JS::BooleanValue;
michael@0 51 using JS::DoubleValue;
michael@0 52 using JS::Float32Value;
michael@0 53 using JS::Int32Value;
michael@0 54 using JS::IsPoisonedValue;
michael@0 55 using JS::MagicValue;
michael@0 56 using JS::NullValue;
michael@0 57 using JS::NumberValue;
michael@0 58 using JS::ObjectOrNullValue;
michael@0 59 using JS::ObjectValue;
michael@0 60 using JS::PrivateUint32Value;
michael@0 61 using JS::PrivateValue;
michael@0 62 using JS::StringValue;
michael@0 63 using JS::UndefinedValue;
michael@0 64
michael@0 65 using JS::IsPoisonedPtr;
michael@0 66
michael@0 67 using JS::Latin1CharsZ;
michael@0 68 using JS::ConstTwoByteChars;
michael@0 69 using JS::TwoByteChars;
michael@0 70
michael@0 71 using JS::AutoFunctionVector;
michael@0 72 using JS::AutoIdVector;
michael@0 73 using JS::AutoObjectVector;
michael@0 74 using JS::AutoScriptVector;
michael@0 75 using JS::AutoValueVector;
michael@0 76
michael@0 77 using JS::AutoIdArray;
michael@0 78
michael@0 79 using JS::AutoGCRooter;
michael@0 80 using JS::AutoHashMapRooter;
michael@0 81 using JS::AutoHashSetRooter;
michael@0 82 using JS::AutoVectorRooter;
michael@0 83
michael@0 84 using JS::CallArgs;
michael@0 85 using JS::CallNonGenericMethod;
michael@0 86 using JS::CallReceiver;
michael@0 87 using JS::CompileOptions;
michael@0 88 using JS::IsAcceptableThis;
michael@0 89 using JS::NativeImpl;
michael@0 90 using JS::OwningCompileOptions;
michael@0 91 using JS::ReadOnlyCompileOptions;
michael@0 92 using JS::SourceBufferHolder;
michael@0 93
michael@0 94 using JS::Rooted;
michael@0 95 using JS::RootedFunction;
michael@0 96 using JS::RootedId;
michael@0 97 using JS::RootedObject;
michael@0 98 using JS::RootedScript;
michael@0 99 using JS::RootedString;
michael@0 100 using JS::RootedValue;
michael@0 101
michael@0 102 using JS::PersistentRooted;
michael@0 103 using JS::PersistentRootedFunction;
michael@0 104 using JS::PersistentRootedId;
michael@0 105 using JS::PersistentRootedObject;
michael@0 106 using JS::PersistentRootedScript;
michael@0 107 using JS::PersistentRootedString;
michael@0 108 using JS::PersistentRootedValue;
michael@0 109
michael@0 110 using JS::Handle;
michael@0 111 using JS::HandleFunction;
michael@0 112 using JS::HandleId;
michael@0 113 using JS::HandleObject;
michael@0 114 using JS::HandleScript;
michael@0 115 using JS::HandleString;
michael@0 116 using JS::HandleValue;
michael@0 117
michael@0 118 using JS::MutableHandle;
michael@0 119 using JS::MutableHandleFunction;
michael@0 120 using JS::MutableHandleId;
michael@0 121 using JS::MutableHandleObject;
michael@0 122 using JS::MutableHandleScript;
michael@0 123 using JS::MutableHandleString;
michael@0 124 using JS::MutableHandleValue;
michael@0 125
michael@0 126 using JS::NullHandleValue;
michael@0 127 using JS::UndefinedHandleValue;
michael@0 128
michael@0 129 using JS::HandleValueArray;
michael@0 130
michael@0 131 using JS::Zone;
michael@0 132
michael@0 133 } /* namespace js */
michael@0 134
michael@0 135 #endif /* NamespaceImports_h */

mercurial