2015-03-03 14:51:05 +00:00
|
|
|
/* 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 {
|
|
|
|
|
2015-03-29 17:43:43 +00:00
|
|
|
protocol PMedia
|
2015-03-03 14:51:05 +00:00
|
|
|
{
|
|
|
|
manager PBackground;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
/**
|
2015-03-29 17:43:43 +00:00
|
|
|
* Requests a persistent unique secret key for each origin.
|
2015-03-03 14:51:05 +00:00
|
|
|
* 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.
|
|
|
|
*/
|
2015-03-29 17:43:43 +00:00
|
|
|
GetOriginKey(uint32_t aRequestId, nsCString aOrigin, bool aPrivateBrowsing);
|
2015-03-03 14:51:05 +00:00
|
|
|
|
|
|
|
/**
|
2015-03-29 17:43:43 +00:00
|
|
|
* On clear cookies. Fire and forget.
|
2015-03-03 14:51:05 +00:00
|
|
|
*/
|
2015-03-29 17:43:43 +00:00
|
|
|
SanitizeOriginKeys(uint64_t aSinceWhen);
|
2015-03-03 14:51:05 +00:00
|
|
|
|
2015-03-29 17:43:43 +00:00
|
|
|
child:
|
|
|
|
GetOriginKeyResponse(uint32_t aRequestId, nsCString key);
|
|
|
|
__delete__();
|
2015-03-03 14:51:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace media
|
|
|
|
} // namespace mozilla
|