forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnon_loadable_plugin_placeholder.h
43 lines (33 loc) · 1.09 KB
/
non_loadable_plugin_placeholder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// 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_
#include "base/macros.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);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(NonLoadablePluginPlaceholder);
};
#endif // CHROME_RENDERER_PLUGINS_NON_LOADABLE_PLUGIN_PLACEHOLDER_H_