intl/chardet/public/nsICharsetDetectionObserver.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/chardet/public/nsICharsetDetectionObserver.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsICDETObserver_h__
    1.10 +#define nsICDETObserver_h__
    1.11 +
    1.12 +#include "nsISupports.h"
    1.13 +#include "nsDetectionConfident.h"
    1.14 +
    1.15 +// {12BB8F12-2389-11d3-B3BF-00805F8A6670}
    1.16 +#define NS_ICHARSETDETECTIONOBSERVER_IID \
    1.17 +{ 0x12bb8f12, 0x2389, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
    1.18 +
    1.19 +/*
    1.20 +  Used to inform answer by nsICharsetDetector
    1.21 + */
    1.22 +class nsICharsetDetectionObserver : public nsISupports {
    1.23 +public:
    1.24 +  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHARSETDETECTIONOBSERVER_IID)
    1.25 +  NS_IMETHOD Notify(const char* aCharset, nsDetectionConfident aConf) = 0;
    1.26 +};
    1.27 +
    1.28 +NS_DEFINE_STATIC_IID_ACCESSOR(nsICharsetDetectionObserver,
    1.29 +                              NS_ICHARSETDETECTIONOBSERVER_IID)
    1.30 +
    1.31 +#endif /* nsICDETObserver_h__ */

mercurial