mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||
|
/* 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/. */
|
||
|
|
||
|
#ifndef nsCSPContext_h___
|
||
|
#define nsCSPContext_h___
|
||
|
|
||
|
#include "nsCSPUtils.h"
|
||
|
#include "nsIChannel.h"
|
||
|
#include "nsIContentSecurityPolicy.h"
|
||
|
#include "nsISerializable.h"
|
||
|
#include "nsXPCOM.h"
|
||
|
|
||
|
class nsIObjectInputStream;
|
||
|
class nsIObjectOutputStream;
|
||
|
|
||
|
#define NS_CSPCONTEXT_CONTRACTID "@mozilla.org/cspcontext;1"
|
||
|
// 09d9ed1a-e5d4-4004-bfe0-27ceb923d9ac
|
||
|
#define NS_CSPCONTEXT_CID \
|
||
|
{ 0x09d9ed1a, 0xe5d4, 0x4004, \
|
||
|
{ 0xbf, 0xe0, 0x27, 0xce, 0xb9, 0x23, 0xd9, 0xac } }
|
||
|
|
||
|
class nsCSPContext : public nsIContentSecurityPolicy
|
||
|
{
|
||
|
public:
|
||
|
NS_DECL_ISUPPORTS
|
||
|
NS_DECL_NSICONTENTSECURITYPOLICY
|
||
|
NS_DECL_NSISERIALIZABLE
|
||
|
|
||
|
nsCSPContext();
|
||
|
virtual ~nsCSPContext();
|
||
|
|
||
|
private:
|
||
|
nsTArray<nsCSPPolicy*> mPolicies;
|
||
|
nsCOMPtr<nsIURI> mSelfURI;
|
||
|
};
|
||
|
|
||
|
#endif /* nsCSPContext_h___ */
|