Bug 1034920, part 3 - nsNativeModuleLoader doesn't need to implement ModuleLoader. r=froydnj

It is only used as a field of gComponentManager, so the full nsISupports and COM treatment isn't needed.
This commit is contained in:
Andrew McCreight
2014-07-28 10:15:58 -07:00
parent 9b2a50b4c6
commit dff8f312cb
2 changed files with 10 additions and 30 deletions

View File

@@ -6,32 +6,18 @@
#ifndef nsNativeModuleLoader_h__
#define nsNativeModuleLoader_h__
#include "nsISupports.h"
#include "mozilla/ModuleLoader.h"
#include "nsDataHashtable.h"
#include "nsHashKeys.h"
#include "mozilla/Module.h"
#include "prlink.h"
class nsNativeModuleLoader;
namespace mozilla {
template<>
struct HasDangerousPublicDestructor<nsNativeModuleLoader>
{
static const bool value = true;
};
class FileLocation;
}
class nsNativeModuleLoader : public mozilla::ModuleLoader
class nsNativeModuleLoader MOZ_FINAL
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsNativeModuleLoader() {}
~nsNativeModuleLoader() {}
virtual const mozilla::Module* LoadModule(mozilla::FileLocation &aFile) MOZ_OVERRIDE;
const mozilla::Module* LoadModule(mozilla::FileLocation &aFile);
nsresult Init();