OLD | NEW |
| (Empty) |
1 // Copyright 2016 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. | |
4 | |
5 #ifndef CONTENT_COMMON_MEDIA_MEDIA_METADATA_SANITIZER_H_ | |
6 #define CONTENT_COMMON_MEDIA_MEDIA_METADATA_SANITIZER_H_ | |
7 | |
8 namespace content { | |
9 | |
10 struct MediaMetadata; | |
11 | |
12 class MediaMetadataSanitizer { | |
13 public: | |
14 // Check the sanity of |metadata|. | |
15 static bool CheckSanity(const MediaMetadata& metadata); | |
16 | |
17 // Sanitizes |metadata| and return the result. | |
18 static MediaMetadata Sanitize(const MediaMetadata& metadata); | |
19 }; | |
20 | |
21 } // namespace content | |
22 | |
23 #endif // CONTENT_COMMON_MEDIA_MEDIA_METADATA_SANITIZER_H_ | |
OLD | NEW |