| Index: third_party/WebKit/Source/modules/plugins/DOMPlugin.h
|
| diff --git a/third_party/WebKit/Source/modules/plugins/DOMPlugin.h b/third_party/WebKit/Source/modules/plugins/DOMPlugin.h
|
| index d859c77002119934445a5e12db6e1924df270e72..0e94e8f1593d4706be2fc8793673dc49798cadf7 100644
|
| --- a/third_party/WebKit/Source/modules/plugins/DOMPlugin.h
|
| +++ b/third_party/WebKit/Source/modules/plugins/DOMPlugin.h
|
| @@ -29,8 +29,6 @@
|
|
|
| namespace blink {
|
|
|
| -class PluginData;
|
| -
|
| class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>,
|
| public ScriptWrappable,
|
| public ContextClient {
|
| @@ -38,10 +36,8 @@ class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>,
|
| DEFINE_WRAPPERTYPEINFO();
|
|
|
| public:
|
| - static DOMPlugin* Create(PluginData* plugin_data,
|
| - LocalFrame* frame,
|
| - unsigned index) {
|
| - return new DOMPlugin(plugin_data, frame, index);
|
| + static DOMPlugin* Create(LocalFrame* frame, const PluginInfo& plugin_info) {
|
| + return new DOMPlugin(frame, plugin_info);
|
| }
|
| virtual ~DOMPlugin();
|
|
|
| @@ -57,14 +53,9 @@ class DOMPlugin final : public GarbageCollectedFinalized<DOMPlugin>,
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - DOMPlugin(PluginData*, LocalFrame*, unsigned index);
|
| -
|
| - const PluginInfo& GetPluginInfo() const {
|
| - return plugin_data_->Plugins()[index_];
|
| - }
|
| + DOMPlugin(LocalFrame*, const PluginInfo&);
|
|
|
| - RefPtr<PluginData> plugin_data_;
|
| - unsigned index_;
|
| + Member<const PluginInfo> plugin_info_;
|
| };
|
|
|
| } // namespace blink
|
|
|