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

Side by Side 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: fix Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/plugins/blocked_plugin.cc ('k') | chrome/renderer/plugins/missing_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // Creates a new WebViewPlugin with a MissingPlugin as a delegate.
15 static webkit::WebViewPlugin* Create(
16 content::RenderView* render_view,
17 WebKit::WebFrame* frame,
18 const WebKit::WebPluginParams& params);
19
20 private:
21 MissingPlugin(content::RenderView* render_view,
22 WebKit::WebFrame* frame,
23 const WebKit::WebPluginParams& params,
24 const std::string& html_data);
25 virtual ~MissingPlugin();
26
27 // WebViewPlugin::Delegate methods:
28 virtual void BindWebFrame(WebKit::WebFrame* frame) OVERRIDE;
29 virtual void ShowContextMenu(const WebKit::WebMouseEvent&) OVERRIDE;
30
31 // content::RenderViewObserver methods:
32 virtual void ContextMenuAction(unsigned id) OVERRIDE;
33
34 void HideCallback(const CppArgumentList& args, CppVariant* result);
35
36 WebKit::WebString mime_type_;
37
38 DISALLOW_COPY_AND_ASSIGN(MissingPlugin);
39 };
40
41 #endif // CHROME_RENDERER_PLUGINS_MISSING_PLUGIN_H_
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/blocked_plugin.cc ('k') | chrome/renderer/plugins/missing_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698