mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 11:27:32 +09:00
Issue #1258 - Part 1: Import mailnews, ldap, and mork from comm-esr52.9.1
This commit is contained in:
parent
23e0d82436
commit
e400f4130a
1564 changed files with 510348 additions and 0 deletions
69
mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.h
Normal file
69
mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.h
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
/* 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 _nsPgpmimeDecrypt_h_
|
||||
#define _nsPgpmimeDecrypt_h_
|
||||
|
||||
#include "mimecth.h"
|
||||
#include "nsIPgpMimeProxy.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsILoadGroup.h"
|
||||
|
||||
#define PGPMIME_JS_DECRYPTOR_CONTRACTID "@mozilla.org/mime/pgp-mime-js-decrypt;1"
|
||||
|
||||
typedef struct MimeEncryptedPgpClass MimeEncryptedPgpClass;
|
||||
typedef struct MimeEncryptedPgp MimeEncryptedPgp;
|
||||
|
||||
struct MimeEncryptedPgpClass {
|
||||
MimeEncryptedClass encrypted;
|
||||
};
|
||||
|
||||
struct MimeEncryptedPgp {
|
||||
MimeEncrypted encrypted;
|
||||
};
|
||||
|
||||
class nsPgpMimeProxy : public nsIPgpMimeProxy,
|
||||
public nsIRequest,
|
||||
public nsIInputStream
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
NS_DECL_NSIPGPMIMEPROXY
|
||||
NS_DECL_NSIREQUESTOBSERVER
|
||||
NS_DECL_NSISTREAMLISTENER
|
||||
NS_DECL_NSIREQUEST
|
||||
NS_DECL_NSIINPUTSTREAM
|
||||
|
||||
nsPgpMimeProxy();
|
||||
|
||||
// Define a Create method to be used with a factory:
|
||||
static NS_METHOD
|
||||
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
|
||||
|
||||
protected:
|
||||
virtual ~nsPgpMimeProxy();
|
||||
bool mInitialized;
|
||||
nsCOMPtr<nsIStreamListener> mDecryptor;
|
||||
|
||||
MimeDecodeCallbackFun mOutputFun;
|
||||
void* mOutputClosure;
|
||||
|
||||
nsCOMPtr<nsILoadGroup> mLoadGroup;
|
||||
nsLoadFlags mLoadFlags;
|
||||
nsresult mCancelStatus;
|
||||
|
||||
uint32_t mStreamOffset;
|
||||
nsCString mByteBuf;
|
||||
nsCString mContentType;
|
||||
nsCString mMimePart;
|
||||
|
||||
nsresult Finalize();
|
||||
};
|
||||
|
||||
#define MimeEncryptedPgpClassInitializer(ITYPE,CSUPER) \
|
||||
{ MimeEncryptedClassInitializer(ITYPE,CSUPER) }
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue