OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ | 5 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ |
6 #define CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ | 6 #define CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "net/base/mime_util.h" | 11 #include "net/base/mime_util.h" |
12 | 12 |
13 // TODO(gunsch/servolk): remove when this definition exists upstream. | 13 // TODO(gunsch/servolk): remove when this definition exists upstream. |
14 | |
15 namespace net { | 14 namespace net { |
16 typedef base::Callback<bool(const std::string&)> IsCodecSupportedCB; | 15 typedef base::Callback<bool(const std::string&)> IsCodecSupportedCB; |
17 bool DefaultIsCodecSupported(const std::string&); | |
18 } | 16 } |
19 | 17 |
20 namespace chromecast { | 18 namespace chromecast { |
21 namespace media { | 19 namespace media { |
22 | 20 |
23 // This function should return a callback capable of deciding whether a given | 21 // Returns the callback to decide whether a given codec (passed in as a string |
24 // codec (passed in as a string representation of the codec id conforming to | 22 // representation of the codec id conforming to RFC 6381) is supported or not. |
25 // RFC 6381) is supported or not. The implementation of this function is | |
26 // expected to be provided somewhere in the vendor platform-specific libraries | |
27 // that will get linked with cast_shell_common target. | |
28 net::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB(); | 23 net::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB(); |
29 | 24 |
30 } // namespace media | 25 } // namespace media |
31 } // namespace chromecast | 26 } // namespace chromecast |
32 | 27 |
33 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ | 28 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ |
34 | |
OLD | NEW |