forked from mindaptiv/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcdm_storage_id.h
31 lines (22 loc) · 1021 Bytes
/
cdm_storage_id.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_MEDIA_CDM_STORAGE_ID_H_
#define CHROME_BROWSER_MEDIA_CDM_STORAGE_ID_H_
#include <stdint.h>
#include <vector>
#include "base/callback_forward.h"
namespace url {
class Origin;
}
// This handles computing the Storage Id for platform verification.
using CdmStorageIdCallback =
base::OnceCallback<void(const std::vector<uint8_t>& storage_id)>;
// Computes the Storage Id based on |profile_salt|, |origin|, and some
// platform specific values. This may be asynchronous, so call |callback|
// with the result. If Storage Id is not supported on the current platform,
// a compile time error will be generated.
void ComputeStorageId(const std::vector<uint8_t>& profile_salt,
const url::Origin& origin,
CdmStorageIdCallback callback);
#endif // CHROME_BROWSER_MEDIA_CDM_STORAGE_ID_H_