mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 04:05:49 +00:00
36 lines
917 B
Plaintext
36 lines
917 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
include protocol PContent;
|
|
include protocol PBackground;
|
|
|
|
namespace mozilla {
|
|
namespace media {
|
|
|
|
protocol PMedia
|
|
{
|
|
manager PBackground;
|
|
|
|
parent:
|
|
/**
|
|
* Requests a persistent unique secret key for each origin.
|
|
* Has no expiry, but is cleared by age along with cookies.
|
|
* This is needed by mediaDevices.enumerateDevices() to produce persistent
|
|
* deviceIds that wont work cross-origin.
|
|
*/
|
|
GetOriginKey(uint32_t aRequestId, nsCString aOrigin, bool aPrivateBrowsing);
|
|
|
|
/**
|
|
* On clear cookies. Fire and forget.
|
|
*/
|
|
SanitizeOriginKeys(uint64_t aSinceWhen);
|
|
|
|
child:
|
|
GetOriginKeyResponse(uint32_t aRequestId, nsCString key);
|
|
__delete__();
|
|
};
|
|
|
|
} // namespace media
|
|
} // namespace mozilla
|