netwerk/base/public/nsChannelProperties.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/base/public/nsChannelProperties.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef nsChannelProperties_h__
     1.9 +#define nsChannelProperties_h__
    1.10 +
    1.11 +#include "nsStringGlue.h"
    1.12 +#ifdef IMPL_LIBXUL
    1.13 +#include "nsNetStrings.h"
    1.14 +#endif
    1.15 +
    1.16 +/**
    1.17 + * @file
    1.18 + * This file contains constants for properties channels can expose.
    1.19 + * They can be accessed by using QueryInterface to access the nsIPropertyBag
    1.20 + * or nsIPropertyBag2 interface on a channel and reading the value.
    1.21 + */
    1.22 +
    1.23 +
    1.24 +/**
    1.25 + * Exists to allow content policy mechanism to function properly during channel
    1.26 + * redirects.  Contains security contextual information about the load.
    1.27 + * Type: nsIChannelPolicy
    1.28 + */
    1.29 +#define NS_CHANNEL_PROP_CHANNEL_POLICY_STR "channel-policy"
    1.30 +
    1.31 +#ifdef IMPL_LIBXUL
    1.32 +#define NS_CHANNEL_PROP_CHANNEL_POLICY gNetStrings->kChannelPolicy
    1.33 +#else
    1.34 +#define NS_CHANNEL_PROP_CHANNEL_POLICY \
    1.35 +  NS_LITERAL_STRING(NS_CHANNEL_PROP_CHANNEL_POLICY_STR)
    1.36 +#endif
    1.37 +
    1.38 +#endif

mercurial