Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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_PDF_PLUGIN_PLACEHOLDER_H_ | |
| 6 #define CHROME_RENDERER_PLUGINS_PDF_PLUGIN_PLACEHOLDER_H_ | |
| 7 | |
| 8 #include "components/plugins/renderer/plugin_placeholder.h" | |
| 9 | |
| 10 class PDFPluginPlaceholder final : public plugins::PluginPlaceholderBase, | |
|
tommycli
2017/06/29 23:31:41
Add a comment as to the purpose of the class. And
amberwon
2017/06/30 01:18:53
Done.
| |
| 11 public gin::Wrappable<PDFPluginPlaceholder> { | |
| 12 public: | |
| 13 static gin::WrapperInfo kWrapperInfo; | |
| 14 static PDFPluginPlaceholder* CreateBlockedPlugin( | |
|
tommycli
2017/06/29 23:31:41
Should probably be CreatePDFPlaceholder ... and th
amberwon
2017/06/30 01:18:53
Done.
| |
| 15 content::RenderFrame* render_frame, | |
| 16 const blink::WebPluginParams& params, | |
| 17 int template_id); | |
| 18 | |
| 19 private: | |
| 20 PDFPluginPlaceholder(content::RenderFrame* render_frame, | |
| 21 const blink::WebPluginParams& params, | |
| 22 const std::string& html_data); | |
| 23 ~PDFPluginPlaceholder() override; | |
| 24 | |
| 25 // WebViewPlugin::Delegate methods: | |
| 26 v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) final; | |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_RENDERER_PLUGINS_PDF_PLUGIN_PLACEHOLDER_H_ | |
| OLD | NEW |