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

Unified Diff: public/testing/WebFrameTestProxy.h

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix mac compile issue. Created 7 years 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
Index: public/testing/WebFrameTestProxy.h
diff --git a/public/testing/WebFrameTestProxy.h b/public/testing/WebFrameTestProxy.h
index 426bbe2c29300976a8be4c36af81960a62ea1ce0..e906a2314e0154b83c33417c1e13007587a4c70d 100644
--- a/public/testing/WebFrameTestProxy.h
+++ b/public/testing/WebFrameTestProxy.h
@@ -33,6 +33,7 @@
#include "WebTestProxy.h"
#include "public/platform/WebNonCopyable.h"
+#include "public/platform/WebString.h"
namespace WebTestRunner {
@@ -67,6 +68,13 @@ public:
}
// WebFrameClient implementation.
+ virtual bool canCreatePluginWithoutRenderer(const blink::WebString& mimeType)
+ {
+ using blink::WebString;
+
+ static const WebString suffix = WebString::fromUTF8("-can-create-without-renderer");
+ return mimeType.utf8().find(suffix.utf8()) != std::string::npos;
+ }
virtual void didStartProvisionalLoad(blink::WebFrame* frame)
{
if (m_version > 2)

Powered by Google App Engine
This is Rietveld 408576698