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

Unified Diff: net/base/mime_util.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 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/mime_sniffer.cc ('k') | net/base/mime_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.cc
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index d1b67d580e2713c8a7baf16d3d432bda18001f12..a7fe9f3eea57b099becd42f0b45ad61bbe883738 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -174,8 +174,8 @@ static base::LazyInstance<MimeUtil>::Leaky g_mime_util =
LAZY_INSTANCE_INITIALIZER;
struct MimeInfo {
- const char* mime_type;
- const char* extensions; // comma separated list
+ const char* const mime_type;
+ const char* const extensions; // comma separated list
};
static const MimeInfo primary_mappings[] = {
@@ -385,7 +385,7 @@ static const char* const supported_non_image_types[] = {
// Dictionary of cryptographic file mime types.
struct CertificateMimeTypeInfo {
- const char* mime_type;
+ const char* const mime_type;
CertificateMimeType cert_type;
};
@@ -498,8 +498,8 @@ static bool IsMimeTypeSupportedOnAndroid(const std::string& mimeType) {
#endif
struct MediaFormatStrict {
- const char* mime_type;
- const char* codecs_list;
+ const char* const mime_type;
+ const char* const codecs_list;
};
// Following is the list of RFC 6381 compliant codecs:
@@ -799,7 +799,7 @@ bool MimeUtil::MatchesMimeType(const std::string& mime_type_pattern,
}
// See http://www.iana.org/assignments/media-types/media-types.xhtml
-static const char* legal_top_level_types[] = {
+static const char* const legal_top_level_types[] = {
"application",
"audio",
"example",
@@ -1223,7 +1223,7 @@ static const char* const kStandardVideoTypes[] = {
};
struct StandardType {
- const char* leading_mime_type;
+ const char* const leading_mime_type;
const char* const* standard_types;
size_t standard_types_len;
};
« no previous file with comments | « net/base/mime_sniffer.cc ('k') | net/base/mime_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698