Chromium Code Reviews| 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_; |