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

Side by Side Diff: chrome/renderer/webplugin_delegate_pepper.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 | « chrome/renderer/webplugin_delegate_pepper.h ('k') | chrome/renderer/webplugin_delegate_proxy.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #define PEPPER_APIS_ENABLED 1 5 #define PEPPER_APIS_ENABLED 1
6 6
7 #include "chrome/renderer/webplugin_delegate_pepper.h" 7 #include "chrome/renderer/webplugin_delegate_pepper.h"
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 void WebPluginDelegatePepper::DidManualLoadFail() { 201 void WebPluginDelegatePepper::DidManualLoadFail() {
202 instance()->DidManualLoadFail(); 202 instance()->DidManualLoadFail();
203 } 203 }
204 204
205 FilePath WebPluginDelegatePepper::GetPluginPath() { 205 FilePath WebPluginDelegatePepper::GetPluginPath() {
206 return instance()->plugin_lib()->plugin_info().path; 206 return instance()->plugin_lib()->plugin_info().path;
207 } 207 }
208 208
209 WebPluginResourceClient* WebPluginDelegatePepper::CreateResourceClient( 209 WebPluginResourceClient* WebPluginDelegatePepper::CreateResourceClient(
210 int resource_id, const GURL& url, bool notify_needed, 210 unsigned long resource_id, const GURL& url, bool notify_needed,
211 intptr_t notify_data, intptr_t existing_stream) { 211 intptr_t notify_data, intptr_t existing_stream) {
212 // Stream already exists. This typically happens for range requests 212 // Stream already exists. This typically happens for range requests
213 // initiated via NPN_RequestRead. 213 // initiated via NPN_RequestRead.
214 if (existing_stream) { 214 if (existing_stream) {
215 NPAPI::PluginStream* plugin_stream = 215 NPAPI::PluginStream* plugin_stream =
216 reinterpret_cast<NPAPI::PluginStream*>(existing_stream); 216 reinterpret_cast<NPAPI::PluginStream*>(existing_stream);
217 217
218 return plugin_stream->AsResourceClient(); 218 return plugin_stream->AsResourceClient();
219 } 219 }
220 220
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 BuildCharEvent(&event, &npevent); 517 BuildCharEvent(&event, &npevent);
518 break; 518 break;
519 case NPEventType_Minimize: 519 case NPEventType_Minimize:
520 case NPEventType_Focus: 520 case NPEventType_Focus:
521 case NPEventType_Device: 521 case NPEventType_Device:
522 NOTIMPLEMENTED(); 522 NOTIMPLEMENTED();
523 break; 523 break;
524 } 524 }
525 return instance()->NPP_HandleEvent(&npevent) != 0; 525 return instance()->NPP_HandleEvent(&npevent) != 0;
526 } 526 }
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_pepper.h ('k') | chrome/renderer/webplugin_delegate_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698