Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Fergus Dall | 9a9d37c | 2019-05-16 03:32:25 | [diff] [blame] | 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 COMPONENTS_EXO_MIME_UTILS_H_ |
| 6 | #define COMPONENTS_EXO_MIME_UTILS_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace exo { |
| 11 | |
Fergus Dall | 9a9d37c | 2019-05-16 03:32:25 | [diff] [blame] | 12 | // 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. |
| 14 | std::string GetCharset(const std::string& mime_type); |
| 15 | |
| 16 | } // namespace exo |
| 17 | |
| 18 | #endif // COMPONENTS_EXO_MIME_UTILS_H_ |