michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 nsChannelPolicy_h___ michael@0: #define nsChannelPolicy_h___ michael@0: michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIChannelPolicy.h" michael@0: michael@0: #define NSCHANNELPOLICY_CONTRACTID "@mozilla.org/nschannelpolicy;1" michael@0: #define NSCHANNELPOLICY_CID \ michael@0: { 0xd396b3cd, 0xf164, 0x4ce8, \ michael@0: { 0x93, 0xa7, 0xe3, 0x85, 0xe1, 0x46, 0x56, 0x3c } } michael@0: michael@0: class nsChannelPolicy : public nsIChannelPolicy michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSICHANNELPOLICY michael@0: michael@0: nsChannelPolicy(); michael@0: virtual ~nsChannelPolicy(); michael@0: michael@0: protected: michael@0: /* Represents the type of content being loaded in the channel per michael@0: * nsIContentPolicy, e.g. TYPE_IMAGE, TYPE_SCRIPT michael@0: */ michael@0: unsigned long mLoadType; michael@0: michael@0: /* pointer to a Content Security Policy object if available */ michael@0: nsCOMPtr mCSP; michael@0: }; michael@0: michael@0: #endif /* nsChannelPolicy_h___ */