michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: /* michael@0: * Content policy implementation that prevents all loads of images, michael@0: * subframes, etc from documents loaded as data (eg documents loaded michael@0: * via XMLHttpRequest). michael@0: */ michael@0: michael@0: #ifndef nsDataDocumentContentPolicy_h__ michael@0: #define nsDataDocumentContentPolicy_h__ michael@0: michael@0: /* 1147d32c-215b-4014-b180-07fe7aedf915 */ michael@0: #define NS_DATADOCUMENTCONTENTPOLICY_CID \ michael@0: {0x1147d32c, 0x215b, 0x4014, {0xb1, 0x80, 0x07, 0xfe, 0x7a, 0xed, 0xf9, 0x15}} michael@0: #define NS_DATADOCUMENTCONTENTPOLICY_CONTRACTID \ michael@0: "@mozilla.org/data-document-content-policy;1" michael@0: michael@0: michael@0: #include "nsIContentPolicy.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsDataDocumentContentPolicy MOZ_FINAL : public nsIContentPolicy michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSICONTENTPOLICY michael@0: michael@0: nsDataDocumentContentPolicy() michael@0: {} michael@0: ~nsDataDocumentContentPolicy() michael@0: {} michael@0: }; michael@0: michael@0: michael@0: #endif /* nsDataDocumentContentPolicy_h__ */