1// Copyright (c) 2010 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 5#include <string> 6 7#include "base/basictypes.h" 8 9namespace android { 10 11// JNI wrapper for libcore.net.MimeUtils 12class MimeUtils { 13 public: 14 static bool GuessMimeTypeFromExtension(const std::string& extension, 15 std::string* result); 16 17 static bool GuessExtensionFromMimeType(const std::string& mimeType, 18 std::string* result); 19 20 private: 21 DISALLOW_IMPLICIT_CONSTRUCTORS(MimeUtils); 22}; 23 24} // namespace android 25 26