content/base/src/nsChannelPolicy.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.)

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef nsChannelPolicy_h___
michael@0 7 #define nsChannelPolicy_h___
michael@0 8
michael@0 9 #include "nsCOMPtr.h"
michael@0 10 #include "nsIChannelPolicy.h"
michael@0 11
michael@0 12 #define NSCHANNELPOLICY_CONTRACTID "@mozilla.org/nschannelpolicy;1"
michael@0 13 #define NSCHANNELPOLICY_CID \
michael@0 14 { 0xd396b3cd, 0xf164, 0x4ce8, \
michael@0 15 { 0x93, 0xa7, 0xe3, 0x85, 0xe1, 0x46, 0x56, 0x3c } }
michael@0 16
michael@0 17 class nsChannelPolicy : public nsIChannelPolicy
michael@0 18 {
michael@0 19 public:
michael@0 20 NS_DECL_ISUPPORTS
michael@0 21 NS_DECL_NSICHANNELPOLICY
michael@0 22
michael@0 23 nsChannelPolicy();
michael@0 24 virtual ~nsChannelPolicy();
michael@0 25
michael@0 26 protected:
michael@0 27 /* Represents the type of content being loaded in the channel per
michael@0 28 * nsIContentPolicy, e.g. TYPE_IMAGE, TYPE_SCRIPT
michael@0 29 */
michael@0 30 unsigned long mLoadType;
michael@0 31
michael@0 32 /* pointer to a Content Security Policy object if available */
michael@0 33 nsCOMPtr<nsISupports> mCSP;
michael@0 34 };
michael@0 35
michael@0 36 #endif /* nsChannelPolicy_h___ */

mercurial