Chromium Code Reviews| Index: chrome/renderer/plugins/non_loadable_plugin_placeholder.h |
| diff --git a/chrome/renderer/plugins/non_loadable_plugin_placeholder.h b/chrome/renderer/plugins/non_loadable_plugin_placeholder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..84bcc2b09433f0ff9a13eeb6c45baa6dfedff632 |
| --- /dev/null |
| +++ b/chrome/renderer/plugins/non_loadable_plugin_placeholder.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2015 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_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| +#define CHROME_RENDERER_PLUGINS_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| + |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| +namespace blink { |
| +class WebLocalFrame; |
| +struct WebPluginParams; |
| +} |
| + |
| +namespace content { |
| +class RenderFrame; |
| +} |
| + |
| +namespace plugins { |
| +class PluginPlaceholder; |
| +} |
| + |
| +class NonLoadablePluginPlaceholder { |
| + public: |
| + // Creates a non-loadable plugin placeholder for platforms without plugins. |
| + static plugins::PluginPlaceholder* CreateNotSupportedPlugin( |
| + content::RenderFrame* render_frame, |
| + blink::WebLocalFrame* frame, |
| + const blink::WebPluginParams& params); |
| + |
| + static plugins::PluginPlaceholder* CreateErrorPlugin( |
| + content::RenderFrame* render_frame, |
| + const base::FilePath& file_path); |
|
Bernhard Bauer
2015/05/18 21:29:12
Add DISALLOW_IMPLICIT_CONSTRUCTORS(NonLoadablePlug
tommycli
2015/05/18 22:09:57
Done.
|
| +}; |
| + |
| +#endif // CHROME_RENDERER_PLUGINS_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_ |