// Receives the result of an output protection query from the user agent. // This may trigger a key status change. // @param aResult indicates if the query succeeded or not. If a query did // not succeed then that other arguments are ignored. // @param aLinkMask is used to indicate if output could be captured by the // user agent. It should be set to `kLinkTypeNetwork` if capture is possible, // otherwise it should be zero. // @param aOutputProtectionMask this argument is unused. void OnQueryOutputProtectionStatus(cdm::QueryResult aResult,
uint32_t aLinkMask,
uint32_t aOutputProtectionMask);
// Prompts the session manager to query the output protection status if we // haven't yet, or if enough time has passed since the last check. Will also // notify if a check has not been responded to on time. void QueryOutputProtectionStatusIfNeeded();
// Signals the host to perform an output protection check. void QueryOutputProtectionStatusFromHost();
// Called to notify the result of an output protection status call. The // following arguments are expected, along with their intended use: // - KeyStatus::kUsable indicates that the query was responded to and the // response showed output is protected. // - KeyStatus::kOutputRestricted indicates that the query was responded to // and the response showed output is not protected. // - KeyStatus::kInternalError indicates a query was not repsonded to on // time, or that a query was responded to with a failed cdm::QueryResult. // The status passed to this function will be used to update the status of // the keyId "output-protection", which tests an observe. void NotifyOutputProtectionStatus(cdm::KeyStatus aStatus);
// The session id of the last session created or loaded from persistent // storage. Used to fire test messages at that session.
std::optional<std::string> mLastSessionId;
// If there is an inflight query to the host to check the output protection // status. Multiple in flight queries should not be allowed, avoid firing // more if this is true. bool mHasOutstandingOutputProtectionQuery = false; // The last time the manager called QueryOutputProtectionStatus on the host.
mozilla::TimeStamp mLastOutputProtectionQueryTime;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.