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: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * A container for policy information to be used during channel creation. michael@0: * michael@0: * This interface exists to allow the content policy mechanism to function michael@0: * properly during channel redirects. Channels can be created with this michael@0: * interface placed in the property bag and upon redirect, the interface can michael@0: * be transferred from the old channel to the new channel. michael@0: */ michael@0: [scriptable, uuid(18045e96-1afe-4162-837a-04691267158c)] michael@0: interface nsIChannelPolicy : nsISupports michael@0: { michael@0: /** michael@0: * Indicates what type of content is being loaded, e.g. michael@0: * nsIContentPolicy::TYPE_IMAGE michael@0: */ michael@0: attribute unsigned long loadType; michael@0: michael@0: /** michael@0: * A nsIContentSecurityPolicy object to determine if the load should michael@0: * be allowed. michael@0: */ michael@0: attribute nsISupports contentSecurityPolicy; michael@0: };