| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |