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

Unified Diff: content/shell/renderer/test_runner/WebFrameTestProxy.h

Issue 105633011: BrowserPlugin/WebView - Move plugin lifetime to DOM - The Prequel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove use of npobject. Created 6 years, 11 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
Index: content/shell/renderer/test_runner/WebFrameTestProxy.h
diff --git a/content/shell/renderer/test_runner/WebFrameTestProxy.h b/content/shell/renderer/test_runner/WebFrameTestProxy.h
index 83afb7f9b6f9c152460cc8d57c61c11a2a847989..b4c63a050a451a8a8c60a0a1a812fc5f8d3528bb 100644
--- a/content/shell/renderer/test_runner/WebFrameTestProxy.h
+++ b/content/shell/renderer/test_runner/WebFrameTestProxy.h
@@ -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)
« no previous file with comments | « content/shell/renderer/test_runner/TestPlugin.cpp ('k') | content/shell/renderer/test_runner/WebTestProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698