content/base/src/nsMixedContentBlocker.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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___ */

mercurial