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

Side by Side Diff: webkit/glue/multipart_response_delegate.h

Issue 661445: Avoid having every frame of a multipart response create a (Closed)
Patch Set: with unittest Created 10 years, 9 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/multipart_response_delegate.cc » ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 // A delegate class of WebURLLoaderImpl that handles multipart/x-mixed-replace 5 // A delegate class of WebURLLoaderImpl that handles multipart/x-mixed-replace
6 // data. We special case multipart/x-mixed-replace because WebCore expects a 6 // data. We special case multipart/x-mixed-replace because WebCore expects a
7 // separate didReceiveResponse for each new message part. 7 // separate didReceiveResponse for each new message part.
8 // 8 //
9 // Most of the logic and edge case handling are based on the Mozilla's 9 // Most of the logic and edge case handling are based on the Mozilla's
10 // implementation in netwerk/streamconv/converters/nsMultiMixedConv.cpp. 10 // implementation in netwerk/streamconv/converters/nsMultiMixedConv.cpp.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // true until we get our first on received data call 123 // true until we get our first on received data call
124 bool first_received_data_; 124 bool first_received_data_;
125 125
126 // true if we're truncated in the middle of a header 126 // true if we're truncated in the middle of a header
127 bool processing_headers_; 127 bool processing_headers_;
128 128
129 // true when we're done sending information. At that point, we stop 129 // true when we're done sending information. At that point, we stop
130 // processing AddData requests. 130 // processing AddData requests.
131 bool stop_sending_; 131 bool stop_sending_;
132 132
133 // true after we've sent our first response to the WebURLLoaderClient.
134 bool has_sent_first_response_;
135
133 DISALLOW_COPY_AND_ASSIGN(MultipartResponseDelegate); 136 DISALLOW_COPY_AND_ASSIGN(MultipartResponseDelegate);
134 }; 137 };
135 138
136 } // namespace webkit_glue 139 } // namespace webkit_glue
137 140
138 #endif 141 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/glue/multipart_response_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698