summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authoryurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 07:11:34 +0000
committeryurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 07:11:34 +0000
commit3d248b2db2eae7c805ada987f997caa0929700c7 (patch)
treee00b151dee03e241775e33f460b0585dd49b20ea /chrome/renderer/webplugin_delegate_proxy.cc
parent53a5453c5ade1cadf95989a2102cf56873888e78 (diff)
downloadchromium_src-3d248b2db2eae7c805ada987f997caa0929700c7.zip
chromium_src-3d248b2db2eae7c805ada987f997caa0929700c7.tar.gz
chromium_src-3d248b2db2eae7c805ada987f997caa0929700c7.tar.bz2
Send resource load notifications from plugins to devtools agent. This is a part of a fix which would allow to inspect plugin resources.
BUG=2084 Review URL: http://codereview.chromium.org/435044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index 823080c..2e24172 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -68,8 +68,9 @@ class ResourceClientProxy : public webkit_glue::WebPluginResourceClient {
~ResourceClientProxy() {
}
- void Initialize(int resource_id, const GURL& url, bool notify_needed,
- intptr_t notify_data, intptr_t existing_stream) {
+ void Initialize(unsigned long resource_id, const GURL& url,
+ bool notify_needed, intptr_t notify_data,
+ intptr_t existing_stream) {
resource_id_ = resource_id;
url_ = url;
notify_needed_ = notify_needed;
@@ -147,7 +148,7 @@ class ResourceClientProxy : public webkit_glue::WebPluginResourceClient {
private:
scoped_refptr<PluginChannelHost> channel_;
int instance_id_;
- int resource_id_;
+ unsigned long resource_id_;
GURL url_;
bool notify_needed_;
intptr_t notify_data_;
@@ -1125,7 +1126,7 @@ void WebPluginDelegateProxy::OnHandleURLRequest(
webkit_glue::WebPluginResourceClient*
WebPluginDelegateProxy::CreateResourceClient(
- int resource_id, const GURL& url, bool notify_needed,
+ unsigned long resource_id, const GURL& url, bool notify_needed,
intptr_t notify_data, intptr_t npstream) {
if (!channel_host_)
return NULL;
@@ -1148,7 +1149,7 @@ void WebPluginDelegateProxy::OnInitiateHTTPRangeRequest(
notify_data);
}
-void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id,
+void WebPluginDelegateProxy::OnDeferResourceLoading(unsigned long resource_id,
bool defer) {
plugin_->SetDeferResourceLoading(resource_id, defer);
}