/* 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/. */ #ifndef HappyEyeballs_h_ #define HappyEyeballs_h_ #include #include "nsError.h" #include "nsTArray.h" #include "mozilla/net/happy_eyeballs_glue.h" namespace mozilla { namespace net { class HappyEyeballs final { public: static nsresult Init(HappyEyeballs** aHappyEyeballs, const nsACString& aOrigin, uint16_t aPort, const nsTArray* aAltSvc, happy_eyeballs::IpPreference aPref) { return happy_eyeballs::create((const HappyEyeballs**)aHappyEyeballs, &aOrigin, aPort, aAltSvc, aPref); } void AddRef() { happy_eyeballs::addref(this); } void Release() { happy_eyeballs::release(this); } private: HappyEyeballs() = delete; ~HappyEyeballs() = delete; }; } // namespace net } // namespace mozilla #endif