summaryrefslogtreecommitdiff
path: root/chromium/content/common/media/media_metadata_sanitizer.h
blob: 6a4d678b25faa7abfa173a65017d416234f6dafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_

namespace content {

struct MediaMetadata;

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_