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

Unified Diff: webkit/api/src/FrameLoaderClientImpl.cpp

Issue 342104: Eliminate mime_util dependency in FrameLoaderClientImpl.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « webkit/api/public/WebMimeRegistry.h ('k') | webkit/glue/simple_webmimeregistry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/FrameLoaderClientImpl.cpp
===================================================================
--- webkit/api/src/FrameLoaderClientImpl.cpp (revision 30833)
+++ webkit/api/src/FrameLoaderClientImpl.cpp (working copy)
@@ -53,6 +53,7 @@
#include "WebFrameImpl.h"
#include "WebKit.h"
#include "WebKitClient.h"
+#include "WebMimeRegistry.h"
#include "WebNode.h"
#include "WebPlugin.h"
#include "WebPluginParams.h"
@@ -70,9 +71,6 @@
#include "WrappedResourceRequest.h"
#include "WrappedResourceResponse.h"
-// FIXME: remove these
-#include "net/base/mime_util.h"
-
using namespace WebCore;
namespace WebKit {
@@ -1122,7 +1120,7 @@
// mimeType strings are supposed to be ASCII, but if they are not for some
// reason, then it just means that the mime type will fail all of these "is
// supported" checks and go down the path of an unhandled mime type.
- if (net::IsSupportedMimeType(mimeType.latin1().data()))
+ if (webKitClient()->mimeRegistry()->supportsMIMEType(mimeType) == WebMimeRegistry::IsSupported)
return true;
// If Chrome is started with the --disable-plugins switch, pluginData is null.
« no previous file with comments | « webkit/api/public/WebMimeRegistry.h ('k') | webkit/glue/simple_webmimeregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698