Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: content/common/media/media_metadata_sanitizer.h

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/android/media_metadata_android.cc ('k') | content/common/media/media_metadata_sanitizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_metadata_sanitizer.h
diff --git a/content/common/media/media_metadata_sanitizer.h b/content/common/media/media_metadata_sanitizer.h
new file mode 100644
index 0000000000000000000000000000000000000000..fa08ebb745e0622c35cfcfe4341350a3d152e26d
--- /dev/null
+++ b/content/common/media/media_metadata_sanitizer.h
@@ -0,0 +1,23 @@
+// Copyright 2016 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 CONTENT_COMMON_MEDIA_MEDIA_METADATA_SANITIZER_H_
+#define CONTENT_COMMON_MEDIA_MEDIA_METADATA_SANITIZER_H_
+
+#include "content/public/common/media_metadata.h"
+
+namespace content {
+
+class MediaMetadataSanitizer {
+ public:
+ // Check the sanity of |metadata|.
+ static bool CheckSanity(const MediaMetadata& metadata);
+
+ // Sanitizes |metadata| and return the result.
+ static MediaMetadata Sanitize(const MediaMetadata& metadata);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_MEDIA_MEDIA_METADATA_SANITIZER_H_
« no previous file with comments | « content/common/android/media_metadata_android.cc ('k') | content/common/media/media_metadata_sanitizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698