- Linux: cefclient: Add a GTK implementation of CefDialogHandler (issue #1258).

- Add new CefGetExtensionsForMimeType function.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1761 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2014-07-09 18:03:43 +00:00
parent da1ac7dde5
commit 6f63f5d4f8
8 changed files with 294 additions and 0 deletions

View File

@@ -74,3 +74,14 @@ CefString CefGetMimeType(const CefString& extension) {
net::GetMimeTypeFromExtension(extension, &mime_type);
return mime_type;
}
void CefGetExtensionsForMimeType(const CefString& mime_type,
std::vector<CefString>& extensions) {
typedef std::vector<base::FilePath::StringType> VectorType;
VectorType ext;
net::GetExtensionsForMimeType(mime_type, &ext);
VectorType::const_iterator it = ext.begin();
for (; it != ext.end(); ++it)
extensions.push_back(*it);
}