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

Unified Diff: chrome/browser/resource_dispatcher_host.h

Issue 12602: Fix for 1498134, possible crash when cancelling a url request. The... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « no previous file | chrome/browser/resource_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resource_dispatcher_host.h
===================================================================
--- chrome/browser/resource_dispatcher_host.h (revision 5928)
+++ chrome/browser/resource_dispatcher_host.h (working copy)
@@ -396,6 +396,14 @@
// true on success.
bool CompleteResponseStarted(URLRequest* request);
+ // Cancels the given request if it still exists. We ignore cancels from the
+ // renderer in the event of a download. If |allow_delete| is true and no IO
+ // is pending, the request is removed and deleted.
+ void CancelRequest(int render_process_host_id,
+ int request_id,
+ bool from_renderer,
+ bool allow_delete);
+
// Helper function for regular and download requests.
void BeginRequestInternal(URLRequest* request, bool mixed_content);
« no previous file with comments | « no previous file | chrome/browser/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698