Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: net/base/platform_mime_util.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/openssl_private_key_store_memory.cc ('k') | net/base/platform_mime_util_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/platform_mime_util.h
diff --git a/net/base/platform_mime_util.h b/net/base/platform_mime_util.h
deleted file mode 100644
index 726cea4341458f3bce057753bac50dbc33443f4a..0000000000000000000000000000000000000000
--- a/net/base/platform_mime_util.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef NET_BASE_PLATFORM_MIME_UTIL_H_
-#define NET_BASE_PLATFORM_MIME_UTIL_H_
-
-#include <string>
-
-#include "base/containers/hash_tables.h"
-#include "base/files/file_path.h"
-
-namespace net {
-
-// Encapsulates the platform-specific functionality in mime_util.
-class PlatformMimeUtil {
- public:
- // See documentation for base::GetPreferredExtensionForMimeType [mime_util.h]
- bool GetPreferredExtensionForMimeType(
- const std::string& mime_type,
- base::FilePath::StringType* extension) const;
-
- // Adds all the extensions that the platform associates with the type
- // |mime_type| to the set |extensions|. Returns at least the value returned
- // by GetPreferredExtensionForMimeType.
- void GetPlatformExtensionsForMimeType(
- const std::string& mime_type,
- base::hash_set<base::FilePath::StringType>* extensions) const;
-
- protected:
- // Get the mime type (if any) that is associated with the file extension.
- // Returns true if a corresponding mime type exists.
- bool GetPlatformMimeTypeFromExtension(const base::FilePath::StringType& ext,
- std::string* mime_type) const;
-};
-
-} // namespace net
-
-#endif // NET_BASE_PLATFORM_MIME_UTIL_H_
« no previous file with comments | « net/base/openssl_private_key_store_memory.cc ('k') | net/base/platform_mime_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698