Chromium Code Reviews| Index: webkit/media/mime_util.h |
| diff --git a/webkit/media/mime_util.h b/webkit/media/mime_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6c2935cf5db902fa9041355b54b5b74218fa25c4 |
| --- /dev/null |
| +++ b/webkit/media/mime_util.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2012 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 WEBKIT_MEDIA_MIME_UTIL_H_ |
| +#define WEBKIT_MEDIA_MIME_UTIL_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +namespace WebKit { |
| +class WebString; |
| +} |
| + |
| +namespace webkit_media { |
| + |
| +namespace mime_util { |
| + |
| +// Returns whether key_sytem is supported at all. |
|
scherkus (not reviewing)
2012/04/16 19:18:15
nit: we surround args references in comments with
ddorwin
2012/04/16 20:02:35
Done.
|
| +// Call IsSupportedKeySystemWithMediaMimeType() to determine whether a |
| +// key_system supports a specific type of media. |
|
scherkus (not reviewing)
2012/04/16 19:18:15
here too
ddorwin
2012/04/16 20:02:35
Done.
|
| +bool isKeySystemSupported(const WebKit::WebString& key_system); |
| + |
| +// Returns whether key_sytem supports the specified media type and codec(s). |
| +bool IsSupportedKeySystemWithMediaMimeType( |
| + const std::string& mime_type, |
| + const std::vector<std::string>& codecs, |
| + const std::string& key_system); |
| + |
| +} // namespace mime_util |
| + |
| +} // namespace webkit_media |
| + |
| +#endif // WEBKIT_MEDIA_MIME_UTIL_H_ |