https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 0b3383009b75b2159deac3556bc3d2dc38f7e003 authored by B2G Bumper Bot on 25 March 2016, 11:06:49 UTC
Bumping manifests a=b2g-bump
Tip revision: 0b33830
nsSaveAsCharset.h
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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 nsSaveAsCharset_h_
#define nsSaveAsCharset_h_

#include "nsStringFwd.h"
#include "nsISaveAsCharset.h"
#include "nsAutoPtr.h"
#include "nsNCRFallbackEncoderWrapper.h"
#include "nsString.h"

class nsSaveAsCharset : public nsISaveAsCharset
{
public:

  nsSaveAsCharset();

  NS_DECL_ISUPPORTS

  NS_IMETHOD Init(const nsACString& aCharset, uint32_t aIgnored, uint32_t aAlsoIgnored) override;

  NS_IMETHOD Convert(const nsAString& ain, nsACString& aOut) override;

  NS_IMETHODIMP GetCharset(nsACString& aCharset) override;

private:

  virtual ~nsSaveAsCharset();

  nsAutoPtr<nsNCRFallbackEncoderWrapper> mEncoder;
  nsCString mCharset;
};

#endif
back to top