blob: 64dc3369418f8279122c2c0057b127fe623312be [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