Bug 1735097 - Geolocation: use EpochTimeStamp instead of DOMTimeStamp r=saschanaz...
[gecko.git] / toolkit / components / antitracking / ContentBlockingUserInteraction.h
blob503990ae82a09493b8f810cb828700875c88e188
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_contentblockinguserinteraction_h
8 #define mozilla_contentblockinguserinteraction_h
10 #define USER_INTERACTION_PERM "storageAccessAPI"_ns
12 class nsIPrincipal;
14 namespace mozilla {
16 class ContentBlockingUserInteraction final {
17 public:
18 // Used to remember that we observed a user interaction that is significant
19 // for content blocking.
20 static void Observe(nsIPrincipal* aPrincipal);
22 // Used to query whether we've observed a user interaction that is significant
23 // for content blocking for the given principal in the past.
24 static bool Exists(nsIPrincipal* aPrincipal);
27 } // namespace mozilla
29 #endif // mozilla_contentblockinguserinteraction_h