OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_HTTP_BODY_CONVERSIONS_H_ |
| 6 #define CONTENT_RENDERER_HTTP_BODY_CONVERSIONS_H_ |
| 7 |
| 8 #include "content/common/resource_request_body.h" |
| 9 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 // Converts |input| to |output| (coverting under the hood |
| 14 // WebHTTPBody::Element from the Blink layer into |
| 15 // ResourceRequestBody::Element from the //content layer). |
| 16 void ConvertToHttpBodyElement(const blink::WebHTTPBody::Element& input, |
| 17 ResourceRequestBody::Element* output); |
| 18 |
| 19 // Appends |element| to |http_body| (coverting under the hood |
| 20 // ResourceRequestBody::Element from the //content layer into |
| 21 // WebHTTPBody::Element from the Blink layer). |
| 22 void AppendHttpBodyElement(const ResourceRequestBody::Element& element, |
| 23 blink::WebHTTPBody* http_body); |
| 24 |
| 25 } // namespace content |
| 26 |
| 27 #endif // CONTENT_RENDERER_HTTP_BODY_CONVERSIONS_H_ |
OLD | NEW |