GeckoViewContentProtocolHandler.h (859B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef GeckoViewContentProtocolHandler_h__ 7 #define GeckoViewContentProtocolHandler_h__ 8 9 #include "nsIProtocolHandler.h" 10 #include "nsWeakReference.h" 11 12 class nsIURIMutator; 13 14 class GeckoViewContentProtocolHandler : public nsIProtocolHandler, 15 public nsSupportsWeakReference { 16 virtual ~GeckoViewContentProtocolHandler() = default; 17 18 public: 19 NS_DECL_THREADSAFE_ISUPPORTS 20 NS_DECL_NSIPROTOCOLHANDLER 21 22 GeckoViewContentProtocolHandler() = default; 23 24 [[nodiscard]] nsresult Init(); 25 }; 26 27 #endif // !GeckoViewContentProtocolHandler_h__