icecat: update to upstream version 128.0.14-1gnu1
This commit is contained in:
parent
0cdda4f34e
commit
56c3deff60
77 changed files with 8997 additions and 3862 deletions
|
|
@ -96,9 +96,7 @@ void ClearKeyPersistence::WriteIndex() {
|
|||
std::move(onIndexFail));
|
||||
}
|
||||
|
||||
ClearKeyPersistence::ClearKeyPersistence(Host_10* aHost) {
|
||||
this->mHost = aHost;
|
||||
}
|
||||
ClearKeyPersistence::ClearKeyPersistence(Host_11* aHost) : mHost(aHost) {}
|
||||
|
||||
void ClearKeyPersistence::EnsureInitialized(bool aPersistentStateAllowed,
|
||||
function<void()>&& aOnInitialized) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ enum PersistentKeyState { UNINITIALIZED, LOADING, LOADED };
|
|||
|
||||
class ClearKeyPersistence : public RefCounted {
|
||||
public:
|
||||
explicit ClearKeyPersistence(cdm::Host_10* aHost);
|
||||
explicit ClearKeyPersistence(cdm::Host_11* aHost);
|
||||
|
||||
void EnsureInitialized(bool aPersistentStateAllowed,
|
||||
std::function<void()>&& aOnInitialized);
|
||||
|
|
@ -51,7 +51,7 @@ class ClearKeyPersistence : public RefCounted {
|
|||
void PersistentSessionRemoved(std::string& aSid);
|
||||
|
||||
private:
|
||||
cdm::Host_10* mHost = nullptr;
|
||||
cdm::Host_11* mHost = nullptr;
|
||||
|
||||
PersistentKeyState mPersistentKeyState = PersistentKeyState::UNINITIALIZED;
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ using std::function;
|
|||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
ClearKeySessionManager::ClearKeySessionManager(Host_10* aHost)
|
||||
ClearKeySessionManager::ClearKeySessionManager(Host_11* aHost)
|
||||
: mDecryptionManager(ClearKeyDecryptionManager::Get()) {
|
||||
CK_LOGD("ClearKeySessionManager ctor %p", this);
|
||||
AddRef();
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
class ClearKeySessionManager final : public RefCounted {
|
||||
public:
|
||||
explicit ClearKeySessionManager(cdm::Host_10* aHost);
|
||||
explicit ClearKeySessionManager(cdm::Host_11* aHost);
|
||||
|
||||
void Init(bool aDistinctiveIdentifierAllowed, bool aPersistentStateAllowed);
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ class ClearKeySessionManager final : public RefCounted {
|
|||
RefPtr<ClearKeyDecryptionManager> mDecryptionManager;
|
||||
RefPtr<ClearKeyPersistence> mPersistence;
|
||||
|
||||
cdm::Host_10* mHost = nullptr;
|
||||
cdm::Host_11* mHost = nullptr;
|
||||
|
||||
std::set<KeyId> mKeyIds;
|
||||
std::map<std::string, ClearKeySession*> mSessions;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class WriteRecordClient : public FileIOClient {
|
|||
* This function will take the memory ownership of the parameters and
|
||||
* delete them when done.
|
||||
*/
|
||||
static void Write(Host_10* aHost, string& aRecordName,
|
||||
static void Write(Host_11* aHost, string& aRecordName,
|
||||
const vector<uint8_t>& aData, function<void()>&& aOnSuccess,
|
||||
function<void()>&& aOnFailure) {
|
||||
WriteRecordClient* client = new WriteRecordClient(
|
||||
|
|
@ -75,7 +75,7 @@ class WriteRecordClient : public FileIOClient {
|
|||
mOnFailure(std::move(aOnFailure)),
|
||||
mData(aData) {}
|
||||
|
||||
void Do(const string& aName, Host_10* aHost) {
|
||||
void Do(const string& aName, Host_11* aHost) {
|
||||
// Initialize the FileIO.
|
||||
mFileIO = aHost->CreateFileIO(this);
|
||||
mFileIO->Open(aName.c_str(), aName.size());
|
||||
|
|
@ -108,7 +108,7 @@ class WriteRecordClient : public FileIOClient {
|
|||
const vector<uint8_t> mData;
|
||||
};
|
||||
|
||||
void WriteData(Host_10* aHost, string& aRecordName,
|
||||
void WriteData(Host_11* aHost, string& aRecordName,
|
||||
const vector<uint8_t>& aData, function<void()>&& aOnSuccess,
|
||||
function<void()>&& aOnFailure) {
|
||||
WriteRecordClient::Write(aHost, aRecordName, aData, std::move(aOnSuccess),
|
||||
|
|
@ -121,7 +121,7 @@ class ReadRecordClient : public FileIOClient {
|
|||
* This function will take the memory ownership of the parameters and
|
||||
* delete them when done.
|
||||
*/
|
||||
static void Read(Host_10* aHost, string& aRecordName,
|
||||
static void Read(Host_11* aHost, string& aRecordName,
|
||||
function<void(const uint8_t*, uint32_t)>&& aOnSuccess,
|
||||
function<void()>&& aOnFailure) {
|
||||
(new ReadRecordClient(std::move(aOnSuccess), std::move(aOnFailure)))
|
||||
|
|
@ -155,7 +155,7 @@ class ReadRecordClient : public FileIOClient {
|
|||
mOnSuccess(std::move(aOnSuccess)),
|
||||
mOnFailure(std::move(aOnFailure)) {}
|
||||
|
||||
void Do(const string& aName, Host_10* aHost) {
|
||||
void Do(const string& aName, Host_11* aHost) {
|
||||
mFileIO = aHost->CreateFileIO(this);
|
||||
mFileIO->Open(aName.c_str(), aName.size());
|
||||
}
|
||||
|
|
@ -186,7 +186,7 @@ class ReadRecordClient : public FileIOClient {
|
|||
function<void()> mOnFailure;
|
||||
};
|
||||
|
||||
void ReadData(Host_10* aHost, string& aRecordName,
|
||||
void ReadData(Host_11* aHost, string& aRecordName,
|
||||
function<void(const uint8_t*, uint32_t)>&& aOnSuccess,
|
||||
function<void()>&& aOnFailure) {
|
||||
ReadRecordClient::Read(aHost, aRecordName, std::move(aOnSuccess),
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@
|
|||
#define IO_FAILED(x) ((x) != cdm::FileIOClient::Status::kSuccess)
|
||||
|
||||
// Writes data to a file and fires the appropriate callback when complete.
|
||||
void WriteData(cdm::Host_10* aHost, std::string& aRecordName,
|
||||
void WriteData(cdm::Host_11* aHost, std::string& aRecordName,
|
||||
const std::vector<uint8_t>& aData,
|
||||
std::function<void()>&& aOnSuccess,
|
||||
std::function<void()>&& aOnFailure);
|
||||
|
||||
// Reads data from a file and fires the appropriate callback when complete.
|
||||
void ReadData(cdm::Host_10* aHost, std::string& aRecordName,
|
||||
void ReadData(cdm::Host_11* aHost, std::string& aRecordName,
|
||||
std::function<void(const uint8_t*, uint32_t)>&& aOnSuccess,
|
||||
std::function<void()>&& aOnFailure);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue