From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- toolkit/components/build/nsToolkitCompsModule.cpp | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 toolkit/components/build/nsToolkitCompsModule.cpp (limited to 'toolkit/components/build/nsToolkitCompsModule.cpp') diff --git a/toolkit/components/build/nsToolkitCompsModule.cpp b/toolkit/components/build/nsToolkitCompsModule.cpp new file mode 100644 index 0000000000..838a8fc88b --- /dev/null +++ b/toolkit/components/build/nsToolkitCompsModule.cpp @@ -0,0 +1,37 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsToolkitCompsModule.h" + +#include "nsUrlClassifierDBService.h" +#include "nsISupports.h" + +#if defined(XP_WIN) +# include "NativeFileWatcherWin.h" +#else +# include "NativeFileWatcherNotSupported.h" + +NS_IMPL_ISUPPORTS(mozilla::NativeFileWatcherService, + nsINativeFileWatcherService); +#endif // (XP_WIN) + +using namespace mozilla; + +///////////////////////////////////////////////////////////////////////////// + +nsresult nsUrlClassifierDBServiceConstructor(nsISupports* aOuter, + const nsIID& aIID, + void** aResult) { + nsresult rv; + NS_ENSURE_ARG_POINTER(aResult); + NS_ENSURE_NO_AGGREGATION(aOuter); + + RefPtr inst = + nsUrlClassifierDBService::GetInstance(&rv); + if (!inst) { + return rv; + } + + return inst->QueryInterface(aIID, aResult); +} -- cgit v1.2.3