Return Windows error code when create-process fails.
[chromium-blink-merge.git] / chrome / renderer / plugins / non_loadable_plugin_placeholder.h
blobe872e5e4591dbb115f7e642e627bfa66fe64f724
1 // Copyright 2015 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.
5 #ifndef CHROME_RENDERER_PLUGINS_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_
6 #define CHROME_RENDERER_PLUGINS_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_
8 #include "base/macros.h"
10 namespace base {
11 class FilePath;
14 namespace blink {
15 class WebLocalFrame;
16 struct WebPluginParams;
19 namespace content {
20 class RenderFrame;
23 namespace plugins {
24 class PluginPlaceholder;
27 class NonLoadablePluginPlaceholder {
28 public:
29 // Creates a non-loadable plugin placeholder for platforms without plugins.
30 static plugins::PluginPlaceholder* CreateNotSupportedPlugin(
31 content::RenderFrame* render_frame,
32 blink::WebLocalFrame* frame,
33 const blink::WebPluginParams& params);
35 static plugins::PluginPlaceholder* CreateErrorPlugin(
36 content::RenderFrame* render_frame,
37 const base::FilePath& file_path);
39 private:
40 DISALLOW_IMPLICIT_CONSTRUCTORS(NonLoadablePluginPlaceholder);
43 #endif // CHROME_RENDERER_PLUGINS_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_