2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-06-26 21:57:44 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Content policy implementation that prevents all loads of images,
|
|
|
|
* subframes, etc from documents loaded as data (eg documents loaded
|
|
|
|
* via XMLHttpRequest).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsNoDataProtocolContentPolicy_h__
|
|
|
|
#define nsNoDataProtocolContentPolicy_h__
|
|
|
|
|
|
|
|
/* ac9e3e82-bfbd-4f26-941e-f58c8ee178c1 */
|
|
|
|
#define NS_NODATAPROTOCOLCONTENTPOLICY_CID \
|
|
|
|
{ \
|
|
|
|
0xac9e3e82, 0xbfbd, 0x4f26, { \
|
|
|
|
0x94, 0x1e, 0xf5, 0x8c, 0x8e, 0xe1, 0x78, 0xc1 \
|
|
|
|
} \
|
2018-11-30 13:46:48 +03:00
|
|
|
}
|
2006-06-26 21:57:44 +04:00
|
|
|
#define NS_NODATAPROTOCOLCONTENTPOLICY_CONTRACTID \
|
|
|
|
"@mozilla.org/no-data-protocol-content-policy;1"
|
|
|
|
|
|
|
|
#include "nsIContentPolicy.h"
|
2012-06-19 06:30:09 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2006-06-26 21:57:44 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsNoDataProtocolContentPolicy final : public nsIContentPolicy {
|
2020-02-21 13:41:47 +03:00
|
|
|
~nsNoDataProtocolContentPolicy() = default;
|
2014-06-25 06:09:15 +04:00
|
|
|
|
2006-06-26 21:57:44 +04:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSICONTENTPOLICY
|
|
|
|
|
2020-02-21 13:41:47 +03:00
|
|
|
nsNoDataProtocolContentPolicy() = default;
|
2006-06-26 21:57:44 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsNoDataProtocolContentPolicy_h__ */
|