Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsMixedContentBlocker_h___
7 #define nsMixedContentBlocker_h___
9 #define NS_MIXEDCONTENTBLOCKER_CONTRACTID "@mozilla.org/mixedcontentblocker;1"
10 /* daf1461b-bf29-4f88-8d0e-4bcdf332c862 */
11 #define NS_MIXEDCONTENTBLOCKER_CID \
12 { 0xdaf1461b, 0xbf29, 0x4f88, \
13 { 0x8d, 0x0e, 0x4b, 0xcd, 0xf3, 0x32, 0xc8, 0x62 } }
15 // This enum defines type of content that is detected when an
16 // nsMixedContentEvent fires
17 enum MixedContentTypes {
18 // "Active" content, such as fonts, plugin content, JavaScript, stylesheets,
19 // iframes, WebSockets, and XHR
20 eMixedScript,
21 // "Display" content, such as images, audio, video, and <a ping>
22 eMixedDisplay
23 };
25 #include "nsIContentPolicy.h"
27 class nsMixedContentBlocker : public nsIContentPolicy
28 {
29 public:
30 NS_DECL_ISUPPORTS
31 NS_DECL_NSICONTENTPOLICY
33 nsMixedContentBlocker();
34 virtual ~nsMixedContentBlocker();
35 static bool sBlockMixedScript;
36 static bool sBlockMixedDisplay;
37 };
39 #endif /* nsMixedContentBlocker_h___ */