| 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 #include "webkit/glue/plugins/plugin_stream_url.h" | 5 #include "webkit/glue/plugins/plugin_stream_url.h" |
| 6 | 6 |
| 7 #include "webkit/glue/glue_util.h" | 7 #include "webkit/glue/glue_util.h" |
| 8 #include "webkit/glue/webplugin.h" | 8 #include "webkit/glue/webplugin.h" |
| 9 #include "webkit/glue/plugins/plugin_host.h" | 9 #include "webkit/glue/plugins/plugin_host.h" |
| 10 #include "webkit/glue/plugins/plugin_instance.h" | 10 #include "webkit/glue/plugins/plugin_instance.h" |
| 11 | 11 |
| 12 namespace NPAPI { | 12 namespace NPAPI { |
| 13 | 13 |
| 14 PluginStreamUrl::PluginStreamUrl( | 14 PluginStreamUrl::PluginStreamUrl( |
| 15 int resource_id, | 15 unsigned long resource_id, |
| 16 const GURL &url, | 16 const GURL &url, |
| 17 PluginInstance *instance, | 17 PluginInstance *instance, |
| 18 bool notify_needed, | 18 bool notify_needed, |
| 19 void *notify_data) | 19 void *notify_data) |
| 20 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data), | 20 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data), |
| 21 url_(url), | 21 url_(url), |
| 22 id_(resource_id) { | 22 id_(resource_id) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 PluginStreamUrl::~PluginStreamUrl() { | 25 PluginStreamUrl::~PluginStreamUrl() { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void PluginStreamUrl::CancelRequest() { | 98 void PluginStreamUrl::CancelRequest() { |
| 99 if (id_ > 0) { | 99 if (id_ > 0) { |
| 100 if (instance()->webplugin()) { | 100 if (instance()->webplugin()) { |
| 101 instance()->webplugin()->CancelResource(id_); | 101 instance()->webplugin()->CancelResource(id_); |
| 102 } | 102 } |
| 103 id_ = 0; | 103 id_ = 0; |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace NPAPI | 107 } // namespace NPAPI |
| OLD | NEW |