Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / shell / renderer / test_runner / WebFrameTestProxy.h
index 83afb7f..b4c63a0 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "base/basictypes.h"
 #include "content/shell/renderer/test_runner/WebTestProxy.h"
+#include "third_party/WebKit/public/platform/WebString.h"
 
 namespace WebTestRunner {
 
@@ -41,6 +42,13 @@ public:
     }
 
     // WebFrameClient implementation.
+    virtual bool canCreatePluginWithoutRenderer(const blink::WebString& mimeType)
+    {
+        using blink::WebString;
+
+        const CR_DEFINE_STATIC_LOCAL(WebString, suffix, ("-can-create-without-renderer"));
+        return mimeType.utf8().find(suffix.utf8()) != std::string::npos;
+    }
     virtual void didStartProvisionalLoad(blink::WebFrame* frame)
     {
         if (m_version > 2)