android-components / mozilla.components.feature.session / TrackingProtectionUseCases

TrackingProtectionUseCases

class TrackingProtectionUseCases (source)

Contains use cases related to the tracking protection.

Parameters

sessionManager - the application’s SessionManager.

engine - the application’s Engine.

Types

Name Summary
AddExceptionUseCase class AddExceptionUseCase
Use case for adding a new Session to the exception list.
ContainsExceptionUseCase class ContainsExceptionUseCase
Use case for verifying if a Session is in the exception list.
FetchExceptionsUseCase class FetchExceptionsUseCase
Use case for fetching all exceptions in the exception list.
FetchTrackingLogUserCase class FetchTrackingLogUserCase
Use case for fetching all the tracking protection logged information.
RemoveAllExceptionsUseCase class RemoveAllExceptionsUseCase
Use case for removing all Sessions from the exception list.
RemoveExceptionUseCase class RemoveExceptionUseCase
Use case for removing a Session or a TrackingProtectionException from the exception list.

Constructors

Name Summary
<init> TrackingProtectionUseCases(sessionManager: SessionManager, engine: Engine)
Contains use cases related to the tracking protection.

Properties

Name Summary
addException val addException: AddExceptionUseCase
containsException val containsException: ContainsExceptionUseCase
engine val engine: Engine
the application’s Engine.
fetchExceptions val fetchExceptions: FetchExceptionsUseCase
fetchTrackingLogs val fetchTrackingLogs: FetchTrackingLogUserCase
removeAllExceptions val removeAllExceptions: RemoveAllExceptionsUseCase
removeException val removeException: RemoveExceptionUseCase
sessionManager val sessionManager: SessionManager
the application’s SessionManager.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.