Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Unified Diff: media/base/limits.h

Issue 496143002: Update Pepper interface for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove vector.data() Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | media/cdm/ppapi/cdm_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | media/cdm/ppapi/cdm_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698