Chromium Code Reviews| Index: chrome/renderer/plugins/pdf_plugin_placeholder.h |
| diff --git a/chrome/renderer/plugins/pdf_plugin_placeholder.h b/chrome/renderer/plugins/pdf_plugin_placeholder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c5e65fc9b7f56990d76f377adbc09a998e1def71 |
| --- /dev/null |
| +++ b/chrome/renderer/plugins/pdf_plugin_placeholder.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2017 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_PDF_PLUGIN_PLACEHOLDER_H_ |
| +#define CHROME_RENDERER_PLUGINS_PDF_PLUGIN_PLACEHOLDER_H_ |
| + |
| +#include "components/plugins/renderer/plugin_placeholder.h" |
| + |
| +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.
|
| + public gin::Wrappable<PDFPluginPlaceholder> { |
| + public: |
| + static gin::WrapperInfo kWrapperInfo; |
| + static PDFPluginPlaceholder* CreateBlockedPlugin( |
|
tommycli
2017/06/29 23:31:41
Should probably be CreatePDFPlaceholder ... and th
amberwon
2017/06/30 01:18:53
Done.
|
| + content::RenderFrame* render_frame, |
| + const blink::WebPluginParams& params, |
| + int template_id); |
| + |
| + private: |
| + PDFPluginPlaceholder(content::RenderFrame* render_frame, |
| + const blink::WebPluginParams& params, |
| + const std::string& html_data); |
| + ~PDFPluginPlaceholder() override; |
| + |
| + // WebViewPlugin::Delegate methods: |
| + v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) final; |
| +}; |
| + |
| +#endif // CHROME_RENDERER_PLUGINS_PDF_PLUGIN_PLACEHOLDER_H_ |