| Index: content/renderer/http_body_conversions.h
|
| diff --git a/content/renderer/http_body_conversions.h b/content/renderer/http_body_conversions.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8b8880494ddd31bc2ab18a4a78f09d880d561eb4
|
| --- /dev/null
|
| +++ b/content/renderer/http_body_conversions.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_RENDERER_HTTP_BODY_CONVERSIONS_H_
|
| +#define CONTENT_RENDERER_HTTP_BODY_CONVERSIONS_H_
|
| +
|
| +#include "content/common/resource_request_body.h"
|
| +#include "third_party/WebKit/public/platform/WebHTTPBody.h"
|
| +
|
| +namespace content {
|
| +
|
| +// Converts |input| to |output| (coverting under the hood
|
| +// WebHTTPBody::Element from the Blink layer into
|
| +// ResourceRequestBody::Element from the //content layer).
|
| +void ConvertToHttpBodyElement(const blink::WebHTTPBody::Element& input,
|
| + ResourceRequestBody::Element* output);
|
| +
|
| +// Appends |element| to |http_body| (coverting under the hood
|
| +// ResourceRequestBody::Element from the //content layer into
|
| +// WebHTTPBody::Element from the Blink layer).
|
| +void AppendHttpBodyElement(const ResourceRequestBody::Element& element,
|
| + blink::WebHTTPBody* http_body);
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_HTTP_BODY_CONVERSIONS_H_
|
|
|