2003-06-13 01:57:49 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2003-06-13 01:57:49 +04:00
|
|
|
|
|
|
|
#include "nsIMIMEHeaderParam.h"
|
|
|
|
|
|
|
|
#ifndef __nsmimeheaderparamimpl_h___
|
|
|
|
#define __nsmimeheaderparamimpl_h___
|
|
|
|
class nsMIMEHeaderParamImpl : public nsIMIMEHeaderParam
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIMIMEHEADERPARAM
|
|
|
|
|
2007-04-23 18:21:53 +04:00
|
|
|
nsMIMEHeaderParamImpl() {}
|
2011-10-10 18:27:05 +04:00
|
|
|
private:
|
2014-06-24 20:36:44 +04:00
|
|
|
virtual ~nsMIMEHeaderParamImpl() {}
|
2011-10-10 18:27:05 +04:00
|
|
|
enum ParamDecoding {
|
2013-02-21 17:36:00 +04:00
|
|
|
MIME_FIELD_ENCODING = 1,
|
|
|
|
HTTP_FIELD_ENCODING
|
2017-07-06 15:00:35 +03:00
|
|
|
};
|
2011-10-10 18:27:05 +04:00
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
nsresult DoGetParameter(const nsACString& aHeaderVal,
|
2011-10-10 18:27:05 +04:00
|
|
|
const char *aParamName,
|
|
|
|
ParamDecoding aDecoding,
|
2017-07-06 15:00:35 +03:00
|
|
|
const nsACString& aFallbackCharset,
|
|
|
|
bool aTryLocaleCharset,
|
|
|
|
char **aLang,
|
2011-10-10 18:27:05 +04:00
|
|
|
nsAString& aResult);
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
nsresult DoParameterInternal(const char *aHeaderValue,
|
2011-10-10 18:27:05 +04:00
|
|
|
const char *aParamName,
|
|
|
|
ParamDecoding aDecoding,
|
|
|
|
char **aCharset,
|
|
|
|
char **aLang,
|
|
|
|
char **aResult);
|
|
|
|
|
2003-06-13 01:57:49 +04:00
|
|
|
};
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
#endif
|
2003-06-13 01:57:49 +04:00
|
|
|
|