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_antitrackingredirectheuristic_h
8 #define mozilla_antitrackingredirectheuristic_h
15 // This function will be called when we know we are about to perform a http
16 // redirect. It will check if we need to perform the AntiTracking redirect
17 // heuristic from the old channel perspective. We cannot know the classification
18 // flags of the new channel at the point. So, we will save the result in the
19 // loadInfo in order to finish the heuristic once the classification flags is
21 void PrepareForAntiTrackingRedirectHeuristic(nsIChannel
* aOldChannel
,
23 nsIChannel
* aNewChannel
,
26 // This function will be called once the classification flags of the new channel
27 // is known. It will check and perform the AntiTracking redirect heuristic
28 // according to the flags and the result from previous preparation.
29 void FinishAntiTrackingRedirectHeuristic(nsIChannel
* aNewChannel
,
32 } // namespace mozilla
34 #endif // mozilla_antitrackingredirectheuristic_h