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

Unified Diff: content/common/mime_util.cc

Issue 401523002: Move media related mimetype functionality out of net/ and into media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add content/common/mime_util.h for realz Created 6 years, 5 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 | « content/common/mime_util.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mime_util.cc
diff --git a/content/common/mime_util.cc b/content/common/mime_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..43d9831dbd979e2f48836540c19751435285cac5
--- /dev/null
+++ b/content/common/mime_util.cc
@@ -0,0 +1,19 @@
+// Copyright 2014 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.
+
+#include "content/common/mime_util.h"
+
+#include <string>
+
+#include "media/base/mime_util.h"
+#include "net/base/mime_util.h"
+
+namespace content {
+
+bool IsSupportedMimeType(const std::string& mime_type) {
+ return net::IsSupportedMimeType(mime_type) ||
darin (slow to review) 2014/07/24 17:52:53 the only concern I have is that it could be confus
Ryan Sleevi 2014/07/24 18:24:09 I do think it's weird to have the truth of mime ty
+ media::IsSupportedMediaMimeType(mime_type);
+}
+
+}
« no previous file with comments | « content/common/mime_util.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698