blob: 4f0e1d75606afa2c56626279c0d4b0742bdb7cfb [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2019 The Chromium Authors
Fergus Dall9a9d37c2019-05-16 03:32:252// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_EXO_MIME_UTILS_H_
6#define COMPONENTS_EXO_MIME_UTILS_H_
7
8#include <string>
9
10namespace exo {
11
Fergus Dall9a9d37c2019-05-16 03:32:2512// Takes a text/* mime type and returns the name of the character set specified
13// in the type. If no character set is specified, defaults to US-ASCII.
14std::string GetCharset(const std::string& mime_type);
15
16} // namespace exo
17
18#endif // COMPONENTS_EXO_MIME_UTILS_H_