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

Unified Diff: net/base/mime_util.cc

Issue 11263039: Apply a few missing const qualifiers in net/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « no previous file | net/http/http_auth_gssapi_posix.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 f851ecd13785764d6b3a18825801a13411eca91a..5376ef369a5e075218733dda0b4d693e596ba9c9 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -714,7 +714,7 @@ namespace {
// From http://www.w3schools.com/media/media_mimeref.asp and
// http://plugindoc.mozdev.org/winmime.php
-static const char* kStandardImageTypes[] = {
+static const char* const kStandardImageTypes[] = {
"image/bmp",
"image/cis-cod",
"image/gif",
@@ -738,7 +738,7 @@ static const char* kStandardImageTypes[] = {
"image/x-xpixmap",
"image/x-xwindowdump"
};
-static const char* kStandardAudioTypes[] = {
+static const char* const kStandardAudioTypes[] = {
"audio/aac",
"audio/aiff",
"audio/amr",
@@ -757,7 +757,7 @@ static const char* kStandardAudioTypes[] = {
"audio/vnd.rn-realaudio",
"audio/vnd.wave"
};
-static const char* kStandardVideoTypes[] = {
+static const char* const kStandardVideoTypes[] = {
"video/avi",
"video/divx",
"video/flc",
@@ -776,7 +776,7 @@ static const char* kStandardVideoTypes[] = {
struct StandardType {
const char* leading_mime_type;
- const char** standard_types;
+ const char* const* standard_types;
size_t standard_types_len;
};
static const StandardType kStandardTypes[] = {
@@ -809,7 +809,7 @@ void GetExtensionsFromHardCodedMappings(
}
}
-void GetExtensionsHelper(const char** standard_types,
+void GetExtensionsHelper(const char* const* standard_types,
size_t standard_types_len,
const std::string& leading_mime_type,
base::hash_set<FilePath::StringType>* extensions) {
« no previous file with comments | « no previous file | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698