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

Unified Diff: webkit/plugins/npapi/plugin_instance.h

Issue 11189146: Eliminate implicit conversion from scoped_refptr<T> to T* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « webkit/plugins/npapi/plugin_host.cc ('k') | webkit/plugins/npapi/plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « webkit/plugins/npapi/plugin_host.cc ('k') | webkit/plugins/npapi/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698