Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: webkit/plugins/npapi/plugin_stream_url.cc

Issue 19697013: Move NPAPI test plugin to content/test/plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/npapi/plugin_host.cc ('k') | webkit/plugins/npapi/test/Info.plist » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_host.cc ('k') | webkit/plugins/npapi/test/Info.plist » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698