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

Side by Side Diff: webkit/glue/plugins/webplugin_delegate_impl.cc

Issue 435044: Send resource load notifications from plugins to devtools agent (Closed)
Patch Set: Sync with trunk Created 11 years 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
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl.h ('k') | webkit/glue/webplugin.h » ('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) 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/webplugin_delegate_impl.h" 5 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const gfx::Rect& window_rect, 203 const gfx::Rect& window_rect,
204 const gfx::Rect& clip_rect) { 204 const gfx::Rect& clip_rect) {
205 if (WindowedReposition(window_rect, clip_rect) || 205 if (WindowedReposition(window_rect, clip_rect) ||
206 !windowed_did_set_window_) { 206 !windowed_did_set_window_) {
207 // Let the plugin know that it has been moved 207 // Let the plugin know that it has been moved
208 WindowedSetWindow(); 208 WindowedSetWindow();
209 } 209 }
210 } 210 }
211 211
212 WebPluginResourceClient* WebPluginDelegateImpl::CreateResourceClient( 212 WebPluginResourceClient* WebPluginDelegateImpl::CreateResourceClient(
213 int resource_id, const GURL& url, bool notify_needed, 213 unsigned long resource_id, const GURL& url, bool notify_needed,
214 intptr_t notify_data, intptr_t existing_stream) { 214 intptr_t notify_data, intptr_t existing_stream) {
215 // Stream already exists. This typically happens for range requests 215 // Stream already exists. This typically happens for range requests
216 // initiated via NPN_RequestRead. 216 // initiated via NPN_RequestRead.
217 if (existing_stream) { 217 if (existing_stream) {
218 NPAPI::PluginStream* plugin_stream = 218 NPAPI::PluginStream* plugin_stream =
219 reinterpret_cast<NPAPI::PluginStream*>(existing_stream); 219 reinterpret_cast<NPAPI::PluginStream*>(existing_stream);
220 220
221 return plugin_stream->AsResourceClient(); 221 return plugin_stream->AsResourceClient();
222 } 222 }
223 223
224 std::string mime_type; 224 std::string mime_type;
225 NPAPI::PluginStreamUrl *stream = instance()->CreateStream( 225 NPAPI::PluginStreamUrl *stream = instance()->CreateStream(
226 resource_id, url, mime_type, notify_needed, 226 resource_id, url, mime_type, notify_needed,
227 reinterpret_cast<void*>(notify_data)); 227 reinterpret_cast<void*>(notify_data));
228 return stream; 228 return stream;
229 } 229 }
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl.h ('k') | webkit/glue/webplugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698