blob: 3b369c81488eb5d32ac4d03c315b5337212c8216 [file] [log] [blame]
// Copyright 2019 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.
#include <string>
namespace web {
// Returns true if |mime_type| is one of:
// 1. text/html;
// 2. application/xhtml+xml;
// 3. application/xml.
bool IsContentTypeHtml(const std::string& mime_type);
// Returns true if |mime_type| begins with "image".
bool IsContentTypeImage(const std::string& mime_type);
} // namespace web