Chromium Code Reviews| Index: webkit/media/key_systems.h |
| diff --git a/webkit/media/key_systems.h b/webkit/media/key_systems.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..51eee2d14fa568a2c82c07200e6dbaf36c44ea90 |
| --- /dev/null |
| +++ b/webkit/media/key_systems.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_KEY_SYSTEMS_H_ |
| +#define WEBKIT_MEDIA_KEY_SYSTEMS_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +namespace WebKit { |
| +class WebString; |
| +} |
| + |
| +namespace webkit_media { |
| + |
| +namespace key_systems { |
| + |
| +// Returns whether |key_sytem| is supported at all. |
| +// Call IsSupportedKeySystemWithMediaMimeType() to determine whether a |
| +// |key_system| supports a specific type of media. |
| +bool isKeySystemSupported(const WebKit::WebString& key_system); |
|
scherkus (not reviewing)
2012/04/17 23:30:53
is -> Is
OCD nit: this functions aren't consiste
ddorwin
2012/04/18 05:17:01
Done.
The parameter types are still inconsistent,
|
| + |
| +// 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 key_systems |
| + |
| +} // namespace webkit_media |
| + |
| +#endif // WEBKIT_MEDIA_KEY_SYSTEMS_H_ |