Bumping manifests a=b2g-bump
[gecko.git] / dom / base / ThirdPartyUtil.h
bloba541b30969857032f1c6cd1533fda0fb5b432305
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef ThirdPartyUtil_h__
6 #define ThirdPartyUtil_h__
8 #include "nsCOMPtr.h"
9 #include "nsString.h"
10 #include "mozIThirdPartyUtil.h"
11 #include "nsIEffectiveTLDService.h"
12 #include "mozilla/Attributes.h"
14 class nsIURI;
15 class nsIChannel;
16 class nsIDOMWindow;
18 class ThirdPartyUtil MOZ_FINAL : public mozIThirdPartyUtil
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_MOZITHIRDPARTYUTIL
24 nsresult Init();
26 private:
27 ~ThirdPartyUtil() {}
29 nsresult IsThirdPartyInternal(const nsCString& aFirstDomain,
30 nsIURI* aSecondURI, bool* aResult);
32 nsCOMPtr<nsIEffectiveTLDService> mTLDService;
35 #endif