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

Unified Diff: webkit/glue/webplugin_impl.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webplugin_delegate.h ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.h
diff --git a/webkit/glue/webplugin_impl.h b/webkit/glue/webplugin_impl.h
index af0d021a73310ab78fe2958f8640108cf5591651..07de25fb8f19ba044d0686891f28886f717f0853 100644
--- a/webkit/glue/webplugin_impl.h
+++ b/webkit/glue/webplugin_impl.h
@@ -119,14 +119,16 @@ class WebPluginImpl : public WebPlugin,
const char* url);
// Cancels a pending request.
- void CancelResource(int id);
+ void CancelResource(unsigned long id);
- // Returns the next avaiable resource id.
- int GetNextResourceId();
+ // Returns the next avaiable resource id. Returns 0 if the operation fails.
+ // It may fail if the page has already been closed.
+ unsigned long GetNextResourceId();
// Initiates HTTP GET/POST requests.
// Returns true on success.
- bool InitiateHTTPRequest(int resource_id, WebPluginResourceClient* client,
+ bool InitiateHTTPRequest(unsigned long resource_id,
+ WebPluginResourceClient* client,
const char* method, const char* buf, int buf_len,
const GURL& url, const char* range_info,
bool use_plugin_src_as_referer);
@@ -194,7 +196,7 @@ class WebPluginImpl : public WebPlugin,
intptr_t existing_stream, bool notify_needed,
intptr_t notify_data);
- void SetDeferResourceLoading(int resource_id, bool defer);
+ void SetDeferResourceLoading(unsigned long resource_id, bool defer);
// Ignore in-process plugins mode for this flag.
bool IsOffTheRecord() { return false; }
@@ -219,7 +221,7 @@ class WebPluginImpl : public WebPlugin,
void OnDownloadPluginSrcUrl();
struct ClientInfo {
- int id;
+ unsigned long id;
WebPluginResourceClient* client;
WebKit::WebURLRequest request;
bool pending_failure_notification;
« no previous file with comments | « webkit/glue/webplugin_delegate.h ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698