Bug 1550519 - Show a translucent parent highlight when a subgrid is highlighted....
[gecko.git] / dom / base / nsNoDataProtocolContentPolicy.h
blob12e701d32c12e680697bd2d10dfbdd6c4da2827b
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /*
8 * Content policy implementation that prevents all loads of images,
9 * subframes, etc from documents loaded as data (eg documents loaded
10 * via XMLHttpRequest).
13 #ifndef nsNoDataProtocolContentPolicy_h__
14 #define nsNoDataProtocolContentPolicy_h__
16 /* ac9e3e82-bfbd-4f26-941e-f58c8ee178c1 */
17 #define NS_NODATAPROTOCOLCONTENTPOLICY_CID \
18 { \
19 0xac9e3e82, 0xbfbd, 0x4f26, { \
20 0x94, 0x1e, 0xf5, 0x8c, 0x8e, 0xe1, 0x78, 0xc1 \
21 } \
23 #define NS_NODATAPROTOCOLCONTENTPOLICY_CONTRACTID \
24 "@mozilla.org/no-data-protocol-content-policy;1"
26 #include "nsIContentPolicy.h"
27 #include "mozilla/Attributes.h"
29 class nsNoDataProtocolContentPolicy final : public nsIContentPolicy {
30 ~nsNoDataProtocolContentPolicy() {}
32 public:
33 NS_DECL_ISUPPORTS
34 NS_DECL_NSICONTENTPOLICY
36 nsNoDataProtocolContentPolicy() {}
39 #endif /* nsNoDataProtocolContentPolicy_h__ */