mime_utils.h 545 B

123456789101112131415161718
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_EXO_MIME_UTILS_H_
  5. #define COMPONENTS_EXO_MIME_UTILS_H_
  6. #include <string>
  7. namespace exo {
  8. // Takes a text/* mime type and returns the name of the character set specified
  9. // in the type. If no character set is specified, defaults to US-ASCII.
  10. std::string GetCharset(const std::string& mime_type);
  11. } // namespace exo
  12. #endif // COMPONENTS_EXO_MIME_UTILS_H_