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