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

Side by Side 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: test for allowed plugin Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_
6 #define CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h"
10
11 // This is the Chrome implementation of shadow DOM plugin placeholders,
12 // intended to ultimately replace those based on WebViewPlugin.
13 // It is guarded by the --enable-plugin-placeholder-shadow-dom switch.
14
15 // Returns |true| if shadow DOM plugin placeholders are enabled.
16 bool ShadowDOMPluginPlaceholderEnabled();
17
18 // Creates a placeholder suitable for representing a missing plugin.
19 scoped_ptr<blink::WebPluginPlaceholder>
20 CreateShadowDOMPlaceholderForMissingPlugin();
21
22 // For testing, these recognize the type of plugin that was produced,
23 // assuming it was produced by a function in this header.
24 bool IsShadowDOMPlaceholderForMissingPlugin(
25 blink::WebPluginPlaceholder* placeholder);
26
27 #endif // CHROME_RENDERER_PLUGINS_SHADOW_DOM_PLUGIN_PLACEHOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698