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

Unified Diff: net/base/mime_sniffer.h

Issue 12703012: Have media gallery (through native media file util) use MIME sniffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops, forgot, I can now add Flash Created 7 years, 8 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/base/mime_sniffer.cc » ('j') | net/base/mime_sniffer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_sniffer.h
diff --git a/net/base/mime_sniffer.h b/net/base/mime_sniffer.h
index 9cdb2d709c76f185c1a096d3f3e4ddeccd96f44a..163a6a74ea77135d8059974f17d9918766020275 100644
--- a/net/base/mime_sniffer.h
+++ b/net/base/mime_sniffer.h
@@ -19,6 +19,10 @@ namespace net {
// This must be updated if any internal sniffing routine needs more bytes.
const int kMaxBytesToSniff = 1024;
+NET_EXPORT bool IdentifyExtraMimeType(const char* content,
vandebo (ex-Chrome) 2013/04/29 19:43:50 nit: add a comment and move below SniffMimeType
Kevin Bailey 2013/04/30 20:57:56 Done.
+ size_t content_size,
+ std::string* result);
+
// Examine the URL and the mime_type and decide whether we should sniff a
// replacement mime type from the content.
//
« no previous file with comments | « no previous file | net/base/mime_sniffer.cc » ('j') | net/base/mime_sniffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698