| 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 EncryptedMediaUtils_h | 5 #ifndef EncryptedMediaUtils_h |
| 6 #define EncryptedMediaUtils_h | 6 #define EncryptedMediaUtils_h |
| 7 | 7 |
| 8 #include "platform/wtf/Allocator.h" |
| 9 #include "platform/wtf/text/WTFString.h" |
| 8 #include "public/platform/WebEncryptedMediaTypes.h" | 10 #include "public/platform/WebEncryptedMediaTypes.h" |
| 9 #include "wtf/Allocator.h" | |
| 10 #include "wtf/text/WTFString.h" | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class EncryptedMediaUtils { | 14 class EncryptedMediaUtils { |
| 15 STATIC_ONLY(EncryptedMediaUtils); | 15 STATIC_ONLY(EncryptedMediaUtils); |
| 16 | 16 |
| 17 public: | 17 public: |
| 18 static WebEncryptedMediaInitDataType ConvertToInitDataType( | 18 static WebEncryptedMediaInitDataType ConvertToInitDataType( |
| 19 const String& init_data_type); | 19 const String& init_data_type); |
| 20 static String ConvertFromInitDataType(WebEncryptedMediaInitDataType); | 20 static String ConvertFromInitDataType(WebEncryptedMediaInitDataType); |
| 21 | 21 |
| 22 static WebEncryptedMediaSessionType ConvertToSessionType( | 22 static WebEncryptedMediaSessionType ConvertToSessionType( |
| 23 const String& session_type); | 23 const String& session_type); |
| 24 static String ConvertFromSessionType(WebEncryptedMediaSessionType); | 24 static String ConvertFromSessionType(WebEncryptedMediaSessionType); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace blink | 27 } // namespace blink |
| 28 | 28 |
| 29 #endif // EncryptedMediaUtils_h | 29 #endif // EncryptedMediaUtils_h |
| OLD | NEW |