Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8405)

Unified Diff: chrome/renderer/plugins/missing_plugin.h

Issue 8461011: Clean up plug-in placeholders: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/plugins/missing_plugin.h
diff --git a/chrome/renderer/plugins/missing_plugin.h b/chrome/renderer/plugins/missing_plugin.h
new file mode 100644
index 0000000000000000000000000000000000000000..86a36059d1fa56bbad0684eefabb50cac17ca4a5
--- /dev/null
+++ b/chrome/renderer/plugins/missing_plugin.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 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_MISSING_PLUGIN_H_
+#define CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_
+#pragma once
+
+#include "chrome/renderer/plugins/plugin_placeholder.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
+
+class MissingPlugin : public PluginPlaceholder {
+ public:
+ static webkit::npapi::WebViewPlugin* Create(
battre 2011/11/22 09:57:15 Document ownership of passed pointers?
+ content::RenderView* render_view,
+ WebKit::WebFrame* frame,
+ const WebKit::WebPluginParams& params);
+
+ private:
+ MissingPlugin(content::RenderView* render_view,
+ WebKit::WebFrame* frame,
+ const WebKit::WebPluginParams& params,
+ const std::string& html_data);
+ virtual ~MissingPlugin();
+
+ // WebViewPlugin::Delegate methods:
+ virtual void BindWebFrame(WebKit::WebFrame* frame) OVERRIDE;
+ virtual void ShowContextMenu(const WebKit::WebMouseEvent&) OVERRIDE;
+
+ // content::RenderViewObserver methods:
+ virtual void ContextMenuAction(unsigned id) OVERRIDE;
+
+ void HideCallback(const CppArgumentList& args, CppVariant* result);
+
+ WebKit::WebString mime_type_;
+
+ DISALLOW_COPY_AND_ASSIGN(MissingPlugin);
+};
+
+#endif // CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_

Powered by Google App Engine
This is Rietveld 408576698