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

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

Issue 14720012: Relanding this as the previous attempt failed due to build errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | webkit/glue/webcursor.h » ('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) 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
66 class MultipartResponseDelegateTester; 66 class MultipartResponseDelegateTester;
67 67
68 class WEBKIT_GLUE_EXPORT MultipartResponseDelegate { 68 class MultipartResponseDelegate {
69 public: 69 public:
70 MultipartResponseDelegate(WebKit::WebURLLoaderClient* client, 70 MultipartResponseDelegate(WebKit::WebURLLoaderClient* client,
71 WebKit::WebURLLoader* loader, 71 WebKit::WebURLLoader* loader,
72 const WebKit::WebURLResponse& response, 72 const WebKit::WebURLResponse& response,
73 const std::string& boundary); 73 const std::string& boundary);
74 74
75 // Passed through from ResourceHandleInternal 75 // Passed through from ResourceHandleInternal
76 void OnReceivedData(const char* data, int data_len, int encoded_data_length); 76 void OnReceivedData(const char* data, int data_len, int encoded_data_length);
77 void OnCompletedRequest(); 77 void OnCompletedRequest();
78 78
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | webkit/glue/webcursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698