OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // TODO : Support NP_ASFILEONLY mode | 5 // TODO : Support NP_ASFILEONLY mode |
6 // TODO : Support NP_SEEK mode | 6 // TODO : Support NP_SEEK mode |
7 // TODO : Support SEEKABLE=true in NewStream | 7 // TODO : Support SEEKABLE=true in NewStream |
8 | 8 |
9 #include "webkit/glue/plugins/plugin_stream.h" | 9 #include "webkit/glue/plugins/plugin_stream.h" |
10 | 10 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // Stream hasn't been closed yet. | 237 // Stream hasn't been closed yet. |
238 NPError err = instance_->NPP_DestroyStream(&stream_, reason); | 238 NPError err = instance_->NPP_DestroyStream(&stream_, reason); |
239 DCHECK(err == NPERR_NO_ERROR); | 239 DCHECK(err == NPERR_NO_ERROR); |
240 } | 240 } |
241 } | 241 } |
242 | 242 |
243 Notify(reason); | 243 Notify(reason); |
244 return true; | 244 return true; |
245 } | 245 } |
246 | 246 |
| 247 webkit_glue::WebPluginResourceClient* PluginStream::AsResourceClient() { |
| 248 return NULL; |
| 249 } |
| 250 |
247 void PluginStream::Notify(NPReason reason) { | 251 void PluginStream::Notify(NPReason reason) { |
248 if (notify_needed_) { | 252 if (notify_needed_) { |
249 instance_->NPP_URLNotify(stream_.url, reason, notify_data_); | 253 instance_->NPP_URLNotify(stream_.url, reason, notify_data_); |
250 notify_needed_ = false; | 254 notify_needed_ = false; |
251 } | 255 } |
252 } | 256 } |
253 | 257 |
254 } // namespace NPAPI | 258 } // namespace NPAPI |
OLD | NEW |