blob: 97a145131e8315b60679638192dc4ffa6c744ad5 [file] [log] [blame]
// Copyright 2015 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 EncryptedMediaUtils_h
#define EncryptedMediaUtils_h
#include "public/platform/WebEncryptedMediaTypes.h"
#include "wtf/Allocator.h"
#include "wtf/text/WTFString.h"
namespace blink {
class EncryptedMediaUtils {
STATIC_ONLY(EncryptedMediaUtils);
public:
static WebEncryptedMediaInitDataType convertToInitDataType(
const String& initDataType);
static String convertFromInitDataType(WebEncryptedMediaInitDataType);
static WebEncryptedMediaSessionType convertToSessionType(
const String& sessionType);
static String convertFromSessionType(WebEncryptedMediaSessionType);
};
} // namespace blink
#endif // EncryptedMediaUtils_h