| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 * the provisions above, a recipient may use your version of this file under | 44 * the provisions above, a recipient may use your version of this file under |
| 45 * the terms of any one of the MPL, the GPL or the LGPL. | 45 * the terms of any one of the MPL, the GPL or the LGPL. |
| 46 * | 46 * |
| 47 * ***** END LICENSE BLOCK ***** */ | 47 * ***** END LICENSE BLOCK ***** */ |
| 48 | 48 |
| 49 #ifndef WEBKIT_GLUE_MULTIPART_RESPONSE_DELEGATE_H_ | 49 #ifndef WEBKIT_GLUE_MULTIPART_RESPONSE_DELEGATE_H_ |
| 50 #define WEBKIT_GLUE_MULTIPART_RESPONSE_DELEGATE_H_ | 50 #define WEBKIT_GLUE_MULTIPART_RESPONSE_DELEGATE_H_ |
| 51 | 51 |
| 52 #include <string> | 52 #include <string> |
| 53 | 53 |
| 54 #include "webkit/api/public/WebURLResponse.h" | 54 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
| 55 | 55 |
| 56 namespace WebKit { | 56 namespace WebKit { |
| 57 class WebURLLoader; | 57 class WebURLLoader; |
| 58 class WebURLLoaderClient; | 58 class WebURLLoaderClient; |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace webkit_glue { | 61 namespace webkit_glue { |
| 62 | 62 |
| 63 // Used by unit tests to access private members. | 63 // Used by unit tests to access private members. |
| 64 class MultipartResponseDelegateTester; | 64 class MultipartResponseDelegateTester; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool processing_headers_; | 126 bool processing_headers_; |
| 127 | 127 |
| 128 // true when we're done sending information. At that point, we stop | 128 // true when we're done sending information. At that point, we stop |
| 129 // processing AddData requests. | 129 // processing AddData requests. |
| 130 bool stop_sending_; | 130 bool stop_sending_; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace webkit_glue | 133 } // namespace webkit_glue |
| 134 | 134 |
| 135 #endif | 135 #endif |
| OLD | NEW |