michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsChannelProperties_h__ michael@0: #define nsChannelProperties_h__ michael@0: michael@0: #include "nsStringGlue.h" michael@0: #ifdef IMPL_LIBXUL michael@0: #include "nsNetStrings.h" michael@0: #endif michael@0: michael@0: /** michael@0: * @file michael@0: * This file contains constants for properties channels can expose. michael@0: * They can be accessed by using QueryInterface to access the nsIPropertyBag michael@0: * or nsIPropertyBag2 interface on a channel and reading the value. michael@0: */ michael@0: michael@0: michael@0: /** michael@0: * Exists to allow content policy mechanism to function properly during channel michael@0: * redirects. Contains security contextual information about the load. michael@0: * Type: nsIChannelPolicy michael@0: */ michael@0: #define NS_CHANNEL_PROP_CHANNEL_POLICY_STR "channel-policy" michael@0: michael@0: #ifdef IMPL_LIBXUL michael@0: #define NS_CHANNEL_PROP_CHANNEL_POLICY gNetStrings->kChannelPolicy michael@0: #else michael@0: #define NS_CHANNEL_PROP_CHANNEL_POLICY \ michael@0: NS_LITERAL_STRING(NS_CHANNEL_PROP_CHANNEL_POLICY_STR) michael@0: #endif michael@0: michael@0: #endif