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
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_
6 #define CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_
10 #include "base/callback.h"
11 #include "net/base/mime_util.h"
13 // TODO(gunsch/servolk): remove when this definition exists upstream.
15 typedef base::Callback
<bool(const std::string
&)> IsCodecSupportedCB
;
18 namespace chromecast
{
21 // Returns the callback to decide whether a given codec (passed in as a string
22 // representation of the codec id conforming to RFC 6381) is supported or not.
23 net::IsCodecSupportedCB
GetIsCodecSupportedOnChromecastCB();
26 } // namespace chromecast
28 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_