| Index: media/base/limits.h
|
| diff --git a/media/base/limits.h b/media/base/limits.h
|
| index ed7ac513c72dbbf228a6b78caec764d1a68234f1..6ab19537c19ad63b23d34329ae97907a7e18a536 100644
|
| --- a/media/base/limits.h
|
| +++ b/media/base/limits.h
|
| @@ -42,6 +42,16 @@ enum {
|
|
|
| // This limit is used by ParamTraits<VideoCaptureParams>.
|
| kMaxFramesPerSecond = 1000,
|
| +
|
| + // Maximum lengths for various EME API parameters. These are checks to
|
| + // prevent unnecessarily large parameters from being passed around, and the
|
| + // lengths are somewhat arbitrary as the EME spec doesn't specify any limits.
|
| + kMinCertificateLength = 128,
|
| + kMaxCertificateLength = 16 * 1024,
|
| + kMaxWebSessionIdLength = 512,
|
| + kMinKeyIdLength = 1,
|
| + kMaxKeyIdLength = 512,
|
| + kMaxKeyIds = 128,
|
| };
|
|
|
| } // namespace limits
|
|
|