michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* vim:set expandtab ts=4 sw=4 sts=4 cin: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef AppProtocolHandler_ michael@0: #define AppProtocolHandler_ michael@0: michael@0: #include "nsIProtocolHandler.h" michael@0: #include "nsClassHashtable.h" michael@0: #include "mozilla/dom/AppInfoBinding.h" michael@0: michael@0: class AppProtocolHandler : public nsIProtocolHandler michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: // nsIProtocolHandler methods: michael@0: NS_DECL_NSIPROTOCOLHANDLER michael@0: michael@0: // AppProtocolHandler methods: michael@0: AppProtocolHandler(); michael@0: virtual ~AppProtocolHandler(); michael@0: michael@0: // Define a Create method to be used with a factory: michael@0: static nsresult Create(nsISupports* aOuter, michael@0: const nsIID& aIID, michael@0: void* *aResult); michael@0: michael@0: private: michael@0: nsClassHashtable mAppInfoCache; michael@0: }; michael@0: michael@0: #endif /* AppProtocolHandler_ */