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

Unified Diff: chrome/renderer/plugins/shadow_dom_plugin_placeholder.h

Issue 649873006: Enable shadow DOM-based "missing plugin" placeholder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting etc Created 6 years, 2 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: chrome/renderer/plugins/shadow_dom_plugin_placeholder.h
diff --git a/chrome/renderer/plugins/shadow_dom_plugin_placeholder.h b/chrome/renderer/plugins/shadow_dom_plugin_placeholder.h
new file mode 100644
index 0000000000000000000000000000000000000000..9946a124a9ddd7a2c06e4bd3f929991db596f87f
--- /dev/null
+++ b/chrome/renderer/plugins/shadow_dom_plugin_placeholder.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_
+#define CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "third_party/WebKit/public/web/WebPluginPlaceholder.h"
+
+namespace blink {
+class WebLocalFrame;
+struct WebPluginParams;
+} // namespace blink
Lei Zhang 2014/10/29 22:12:39 nit: there's really no need for the comment when t
+
+namespace content {
+class RenderFrame;
+} // namespace content
+
+// This is the Chrome implementation of shadow DOM plugin placeholders,
+// intended to ultimately replace those based on WebViewPlugin.
+// It is guarded by the --enable-plugin-placeholder-shadow-dom switch.
+
+// Returns |true| if shadow DOM plugin placeholders are enabled.
+bool ShadowDOMPluginPlaceholderEnabled();
+
+// Creates a placeholder given plugin info output.
Lei Zhang 2014/10/29 22:12:39 Can you describe the situations where this would r
jbroman 2014/10/29 23:10:48 Done.
+scoped_ptr<blink::WebPluginPlaceholder> CreateShadowDOMPlaceholderForPluginInfo(
+ content::RenderFrame* render_frame,
+ blink::WebLocalFrame* frame,
+ const blink::WebPluginParams& orig_params);
+
+// Creates a placeholder suitable for representing a missing plugin.
+scoped_ptr<blink::WebPluginPlaceholder>
+CreateShadowDOMPlaceholderForMissingPlugin();
+
+#endif // CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_

Powered by Google App Engine
This is Rietveld 408576698