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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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