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

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: 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 unified diff | Download patch | Annotate | Revision Log
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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698