| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/plugins/npapi/plugin_stream_url.h" | 5 #include "webkit/plugins/npapi/plugin_stream_url.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "net/http/http_response_headers.h" | 9 #include "net/http/http_response_headers.h" |
| 10 #include "webkit/plugins/npapi/plugin_host.h" | 10 #include "webkit/plugins/npapi/plugin_host.h" |
| 11 #include "webkit/plugins/npapi/plugin_instance.h" | 11 #include "webkit/plugins/npapi/plugin_instance.h" |
| 12 #include "webkit/plugins/npapi/plugin_lib.h" | |
| 13 #include "webkit/plugins/npapi/webplugin.h" | 12 #include "webkit/plugins/npapi/webplugin.h" |
| 14 | 13 |
| 15 namespace webkit { | 14 namespace webkit { |
| 16 namespace npapi { | 15 namespace npapi { |
| 17 | 16 |
| 18 PluginStreamUrl::PluginStreamUrl( | 17 PluginStreamUrl::PluginStreamUrl( |
| 19 unsigned long resource_id, | 18 unsigned long resource_id, |
| 20 const GURL &url, | 19 const GURL &url, |
| 21 PluginInstance *instance, | 20 PluginInstance *instance, |
| 22 bool notify_needed, | 21 bool notify_needed, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void PluginStreamUrl::SetDeferLoading(bool value) { | 154 void PluginStreamUrl::SetDeferLoading(bool value) { |
| 156 if (id_ > 0) | 155 if (id_ > 0) |
| 157 instance()->webplugin()->SetDeferResourceLoading(id_, value); | 156 instance()->webplugin()->SetDeferResourceLoading(id_, value); |
| 158 for (size_t i = 0; i < range_requests_.size(); ++i) | 157 for (size_t i = 0; i < range_requests_.size(); ++i) |
| 159 instance()->webplugin()->SetDeferResourceLoading(range_requests_[i], | 158 instance()->webplugin()->SetDeferResourceLoading(range_requests_[i], |
| 160 value); | 159 value); |
| 161 } | 160 } |
| 162 | 161 |
| 163 } // namespace npapi | 162 } // namespace npapi |
| 164 } // namespace webkit | 163 } // namespace webkit |
| OLD | NEW |