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 "content/child/npapi/plugin_stream_url.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
| 9 #include "content/child/npapi/plugin_host.h" |
| 10 #include "content/child/npapi/plugin_instance.h" |
| 11 #include "content/child/npapi/plugin_lib.h" |
| 12 #include "content/child/npapi/webplugin.h" |
9 #include "net/http/http_response_headers.h" | 13 #include "net/http/http_response_headers.h" |
10 #include "webkit/plugins/npapi/plugin_host.h" | |
11 #include "webkit/plugins/npapi/plugin_instance.h" | |
12 #include "webkit/plugins/npapi/plugin_lib.h" | |
13 #include "webkit/plugins/npapi/webplugin.h" | |
14 | 14 |
15 namespace webkit { | 15 namespace content { |
16 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, |
23 void *notify_data) | 22 void *notify_data) |
24 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data), | 23 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data), |
25 url_(url), | 24 url_(url), |
26 id_(resource_id) { | 25 id_(resource_id) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 152 } |
154 | 153 |
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 content |
164 } // namespace webkit | |
OLD | NEW |