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

Side by Side Diff: content/renderer/http_body_conversions.h

Issue 1987053002: Deduplicating code performing WebHTTPBody::Element conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/data/test_body/g Created 4 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
« no previous file with comments | « content/renderer/history_serialization.cc ('k') | content/renderer/http_body_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/renderer/history_serialization.cc ('k') | content/renderer/http_body_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698