1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/io/nsUnicharInputStream.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef nsUnicharInputStream_h__ 1.9 +#define nsUnicharInputStream_h__ 1.10 + 1.11 +#include "nsISimpleUnicharStreamFactory.h" 1.12 +#include "nsIUnicharInputStream.h" 1.13 +#include "nsIFactory.h" 1.14 + 1.15 +// {428DCA6F-1A0F-4cda-B516-0D5244745A6A} 1.16 +#define NS_SIMPLE_UNICHAR_STREAM_FACTORY_CID \ 1.17 +{ 0x428dca6f, 0x1a0f, 0x4cda, { 0xb5, 0x16, 0xd, 0x52, 0x44, 0x74, 0x5a, 0x6a } } 1.18 + 1.19 +class nsSimpleUnicharStreamFactory : 1.20 + public nsIFactory, 1.21 + private nsISimpleUnicharStreamFactory 1.22 +{ 1.23 +public: 1.24 + nsSimpleUnicharStreamFactory() {} 1.25 + NS_DECL_ISUPPORTS_INHERITED 1.26 + NS_DECL_NSIFACTORY 1.27 + NS_DECL_NSISIMPLEUNICHARSTREAMFACTORY 1.28 + 1.29 + static nsSimpleUnicharStreamFactory* GetInstance(); 1.30 +}; 1.31 + 1.32 +#endif // nsUnicharInputStream_h__