| Index: webkit/plugins/npapi/plugin_instance.cc
|
| diff --git a/webkit/plugins/npapi/plugin_instance.cc b/webkit/plugins/npapi/plugin_instance.cc
|
| index f26cbec67e55abfe8d767c60e63039af1b727a7c..3b367b24e40b37a6b20db7a19cad3ea10d07ba1e 100644
|
| --- a/webkit/plugins/npapi/plugin_instance.cc
|
| +++ b/webkit/plugins/npapi/plugin_instance.cc
|
| @@ -97,7 +97,7 @@ void PluginInstance::AddStream(PluginStream* stream) {
|
| open_streams_.push_back(make_scoped_refptr(stream));
|
| }
|
|
|
| -void PluginInstance::RemoveStream(PluginStream* stream) {
|
| +void PluginInstance::RemoveStream(scoped_refptr<PluginStream> stream) {
|
| if (in_close_streams_)
|
| return;
|
|
|
| @@ -547,7 +547,7 @@ void PluginInstance::RequestRead(NPStream* stream, NPByteRange* range_list) {
|
| std::vector<scoped_refptr<PluginStream> >::iterator stream_index;
|
| for (stream_index = open_streams_.begin();
|
| stream_index != open_streams_.end(); ++stream_index) {
|
| - PluginStream* plugin_stream = *stream_index;
|
| + scoped_refptr<PluginStream> plugin_stream = *stream_index;
|
| if (plugin_stream->stream() == stream) {
|
| // A stream becomes seekable the first time NPN_RequestRead
|
| // is called on it.
|
| @@ -668,7 +668,7 @@ void PluginInstance::URLRedirectResponse(bool allow, void* notify_data) {
|
| std::vector<scoped_refptr<PluginStream> >::iterator stream_index;
|
| for (stream_index = open_streams_.begin();
|
| stream_index != open_streams_.end(); ++stream_index) {
|
| - PluginStream* plugin_stream = *stream_index;
|
| + scoped_refptr<PluginStream> plugin_stream = *stream_index;
|
| if (plugin_stream->notify_data() == notify_data) {
|
| WebPluginResourceClient* resource_client =
|
| plugin_stream->AsResourceClient();
|
|
|