mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-27 15:56:09 +03:00
34 lines
987 B
C++
34 lines
987 B
C++
|
// Copyright 2017 The Chromium Authors
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#include "net/base/platform_mime_util.h"
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "build/build_config.h"
|
||
|
|
||
|
namespace net {
|
||
|
|
||
|
bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
|
||
|
const base::FilePath::StringType& extension,
|
||
|
std::string* result) const {
|
||
|
// TODO(fuchsia): Integrate with MIME DB when Fuchsia provides an API.
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
bool PlatformMimeUtil::GetPlatformPreferredExtensionForMimeType(
|
||
|
const std::string& mime_type,
|
||
|
base::FilePath::StringType* extension) const {
|
||
|
// TODO(fuchsia): Integrate with MIME DB when Fuchsia provides an API.
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
void PlatformMimeUtil::GetPlatformExtensionsForMimeType(
|
||
|
const std::string& mime_type,
|
||
|
std::unordered_set<base::FilePath::StringType>* extensions) const {
|
||
|
// TODO(fuchsia): Integrate with MIME DB when Fuchsia provides an API.
|
||
|
}
|
||
|
|
||
|
} // namespace net
|