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

Unified Diff: webkit/glue/multipart_response_delegate.h

Issue 2850023: Fix a crash when the content type of a multipart request (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: cancel -> Cancel Created 10 years, 6 months 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 | webkit/glue/multipart_response_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/multipart_response_delegate.h
diff --git a/webkit/glue/multipart_response_delegate.h b/webkit/glue/multipart_response_delegate.h
index 268999ba0d239cc21b226e6d7289d34ea6564d44..aded54a397ea402704ca18d3946e3bfd83fcb45f 100644
--- a/webkit/glue/multipart_response_delegate.h
+++ b/webkit/glue/multipart_response_delegate.h
@@ -75,6 +75,12 @@ class MultipartResponseDelegate {
void OnReceivedData(const char* data, int data_len);
void OnCompletedRequest();
+ // The request has been canceled, so stop making calls to the client.
+ void Cancel() {
+ client_ = NULL;
+ loader_ = NULL;
+ }
+
// Returns the multi part boundary string from the Content-type header
// in the response.
// Returns true on success.
« no previous file with comments | « no previous file | webkit/glue/multipart_response_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698