Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim:set expandtab ts=4 sw=4 sts=4 cin: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef AppProtocolHandler_
8 #define AppProtocolHandler_
10 #include "nsIProtocolHandler.h"
11 #include "nsClassHashtable.h"
12 #include "mozilla/dom/AppInfoBinding.h"
14 class AppProtocolHandler : public nsIProtocolHandler
15 {
16 public:
17 NS_DECL_ISUPPORTS
19 // nsIProtocolHandler methods:
20 NS_DECL_NSIPROTOCOLHANDLER
22 // AppProtocolHandler methods:
23 AppProtocolHandler();
24 virtual ~AppProtocolHandler();
26 // Define a Create method to be used with a factory:
27 static nsresult Create(nsISupports* aOuter,
28 const nsIID& aIID,
29 void* *aResult);
31 private:
32 nsClassHashtable<nsCStringHashKey, mozilla::dom::AppInfo> mAppInfoCache;
33 };
35 #endif /* AppProtocolHandler_ */