1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/public/nsIChannelPolicy.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 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 +#include "nsISupports.idl" 1.9 + 1.10 +/** 1.11 + * A container for policy information to be used during channel creation. 1.12 + * 1.13 + * This interface exists to allow the content policy mechanism to function 1.14 + * properly during channel redirects. Channels can be created with this 1.15 + * interface placed in the property bag and upon redirect, the interface can 1.16 + * be transferred from the old channel to the new channel. 1.17 + */ 1.18 +[scriptable, uuid(18045e96-1afe-4162-837a-04691267158c)] 1.19 +interface nsIChannelPolicy : nsISupports 1.20 +{ 1.21 + /** 1.22 + * Indicates what type of content is being loaded, e.g. 1.23 + * nsIContentPolicy::TYPE_IMAGE 1.24 + */ 1.25 + attribute unsigned long loadType; 1.26 + 1.27 + /** 1.28 + * A nsIContentSecurityPolicy object to determine if the load should 1.29 + * be allowed. 1.30 + */ 1.31 + attribute nsISupports contentSecurityPolicy; 1.32 +};