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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Contains limit definition constants for the media subsystem. 5 // Contains limit definition constants for the media subsystem.
6 6
7 #ifndef MEDIA_BASE_LIMITS_H_ 7 #ifndef MEDIA_BASE_LIMITS_H_
8 #define MEDIA_BASE_LIMITS_H_ 8 #define MEDIA_BASE_LIMITS_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 kMinSampleRate = 3000, 35 kMinSampleRate = 3000,
36 kMaxChannels = 32, 36 kMaxChannels = 32,
37 kMaxBytesPerSample = 4, 37 kMaxBytesPerSample = 4,
38 kMaxBitsPerSample = kMaxBytesPerSample * 8, 38 kMaxBitsPerSample = kMaxBytesPerSample * 8,
39 kMaxSamplesPerPacket = kMaxSampleRate, 39 kMaxSamplesPerPacket = kMaxSampleRate,
40 kMaxPacketSizeInBytes = 40 kMaxPacketSizeInBytes =
41 kMaxBytesPerSample * kMaxChannels * kMaxSamplesPerPacket, 41 kMaxBytesPerSample * kMaxChannels * kMaxSamplesPerPacket,
42 42
43 // This limit is used by ParamTraits<VideoCaptureParams>. 43 // This limit is used by ParamTraits<VideoCaptureParams>.
44 kMaxFramesPerSecond = 1000, 44 kMaxFramesPerSecond = 1000,
45
46 // Maximum lengths for various EME API parameters. These are checks to
47 // prevent unnecessarily large parameters from being passed around, and the
48 // lengths are somewhat arbitrary as the EME spec doesn't specify any limits.
49 kMinCertificateLength = 128,
50 kMaxCertificateLength = 16 * 1024,
51 kMaxWebSessionIdLength = 512,
52 kMinKeyIdLength = 1,
53 kMaxKeyIdLength = 512,
54 kMaxKeyIds = 128,
45 }; 55 };
46 56
47 } // namespace limits 57 } // namespace limits
48 58
49 } // namespace media 59 } // namespace media
50 60
51 #endif // MEDIA_BASE_LIMITS_H_ 61 #endif // MEDIA_BASE_LIMITS_H_
OLDNEW
« 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