Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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_MISSING_PLUGIN_H_ | |
| 6 #define CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/renderer/plugins/plugin_placeholder.h" | |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | |
| 11 | |
| 12 class MissingPlugin : public PluginPlaceholder { | |
| 13 public: | |
| 14 static webkit::npapi::WebViewPlugin* Create( | |
|
battre
2011/11/22 09:57:15
Document ownership of passed pointers?
| |
| 15 content::RenderView* render_view, | |
| 16 WebKit::WebFrame* frame, | |
| 17 const WebKit::WebPluginParams& params); | |
| 18 | |
| 19 private: | |
| 20 MissingPlugin(content::RenderView* render_view, | |
| 21 WebKit::WebFrame* frame, | |
| 22 const WebKit::WebPluginParams& params, | |
| 23 const std::string& html_data); | |
| 24 virtual ~MissingPlugin(); | |
| 25 | |
| 26 // WebViewPlugin::Delegate methods: | |
| 27 virtual void BindWebFrame(WebKit::WebFrame* frame) OVERRIDE; | |
| 28 virtual void ShowContextMenu(const WebKit::WebMouseEvent&) OVERRIDE; | |
| 29 | |
| 30 // content::RenderViewObserver methods: | |
| 31 virtual void ContextMenuAction(unsigned id) OVERRIDE; | |
| 32 | |
| 33 void HideCallback(const CppArgumentList& args, CppVariant* result); | |
| 34 | |
| 35 WebKit::WebString mime_type_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(MissingPlugin); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_ | |
| OLD | NEW |