| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 "base/basictypes.h" | 54 #include "base/basictypes.h" |
| 55 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 55 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 56 #include "webkit/glue/webkit_glue_export.h" | 56 #include "webkit/glue/webkit_glue_export.h" |
| 57 | 57 |
| 58 namespace WebKit { | 58 namespace WebKit { |
| 59 class WebURLLoader; | 59 class WebURLLoader; |
| 60 class WebURLLoaderClient; | 60 class WebURLLoaderClient; |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace webkit_glue { | 63 namespace webkit_glue { |
| 64 | 64 |
| 65 // Used by unit tests to access private members. | 65 // Used by unit tests to access private members. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // true after we've sent our first response to the WebURLLoaderClient. | 145 // true after we've sent our first response to the WebURLLoaderClient. |
| 146 bool has_sent_first_response_; | 146 bool has_sent_first_response_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(MultipartResponseDelegate); | 148 DISALLOW_COPY_AND_ASSIGN(MultipartResponseDelegate); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace webkit_glue | 151 } // namespace webkit_glue |
| 152 | 152 |
| 153 #endif | 153 #endif |
| OLD | NEW |