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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: With the new attach approach Created 6 years, 4 months 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: content/renderer/browser_plugin/browser_plugin.h
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index 357ff016e35becb9e047d97277a1e00a76483fe0..a4b1187e5b377878656e68b7e196ac5e8630df31 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -23,6 +23,7 @@ struct FrameMsg_BuffersSwapped_Params;
namespace content {
+class BrowserPluginDelegate;
class ChildFrameCompositingHelper;
class BrowserPluginManager;
class MockBrowserPlugin;
@@ -167,7 +168,8 @@ class CONTENT_EXPORT BrowserPlugin :
// BrowserPlugin.
BrowserPlugin(RenderViewImpl* render_view,
blink::WebFrame* frame,
- bool auto_navigate);
+ bool auto_navigate,
+ const std::string& mime_type);
Fady Samuel 2014/08/29 18:52:31 Take in a delegate.
lazyboy 2014/08/29 22:08:25 Done.
virtual ~BrowserPlugin();
@@ -237,6 +239,7 @@ class CONTENT_EXPORT BrowserPlugin :
bool visible_;
const bool auto_navigate_;
+ const std::string mime_type_;
std::string html_string_;
Fady Samuel 2014/08/29 18:52:31 Get rid of these three member variables.
lazyboy 2014/08/29 22:08:25 Done.
WebCursor cursor_;
@@ -260,6 +263,8 @@ class CONTENT_EXPORT BrowserPlugin :
std::vector<EditCommand> edit_commands_;
+ scoped_ptr<BrowserPluginDelegate> delegate_;
+
// Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
// get called after BrowserPlugin has been destroyed.
base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698