Index: webkit/plugins/npapi/plugin_instance.h |
diff --git a/webkit/plugins/npapi/plugin_instance.h b/webkit/plugins/npapi/plugin_instance.h |
index 486e8d220de6f6b76f5cfc1d2c1c4d88bd42b057..04cf6d1c69f6acae5e4cc711803c47d5e0443fde 100644 |
--- a/webkit/plugins/npapi/plugin_instance.h |
+++ b/webkit/plugins/npapi/plugin_instance.h |
@@ -23,6 +23,7 @@ |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/point.h" |
#include "ui/gfx/rect.h" |
+#include "webkit/plugins/npapi/plugin_lib.h" |
class MessageLoop; |
@@ -102,7 +103,7 @@ class PluginInstance : public base::RefCountedThreadSafe<PluginInstance> { |
// Get the mimeType for this plugin stream |
const std::string &mime_type() { return mime_type_; } |
- PluginLib* plugin_lib() { return plugin_; } |
+ scoped_refptr<PluginLib> plugin_lib() { return plugin_; } |
#if defined(OS_MACOSX) |
// Get/Set the Mac NPAPI drawing and event models |
@@ -139,7 +140,7 @@ class PluginInstance : public base::RefCountedThreadSafe<PluginInstance> { |
// This is called when a stream is closed. We remove the stream from the |
// list, which releases the reference maintained to the stream. |
- void RemoveStream(PluginStream* stream); |
+ void RemoveStream(scoped_refptr<PluginStream> stream); |
// Closes all open streams on this instance. |
void CloseStreams(); |