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

Unified Diff: content/common/page_state_serialization.h

Issue 2002413002: Revert of Deduplicating code performing WebHTTPBody::Element conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | content/common/page_state_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/page_state_serialization.h
diff --git a/content/common/page_state_serialization.h b/content/common/page_state_serialization.h
index e0c2ecf2f01afb0aa8a97de348f9c7666bfa36e8..69a4a3c86bfbc8c0113c3654d71e2c2b05512534 100644
--- a/content/common/page_state_serialization.h
+++ b/content/common/page_state_serialization.h
@@ -12,7 +12,6 @@
#include "base/strings/nullable_string16.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
-#include "content/common/resource_request_body.h"
#include "third_party/WebKit/public/platform/WebHTTPBody.h"
#include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
@@ -22,7 +21,22 @@
namespace content {
-using ExplodedHttpBodyElement = ResourceRequestBody::Element;
+class ResourceRequestBody;
+
+struct CONTENT_EXPORT ExplodedHttpBodyElement {
+ blink::WebHTTPBody::Element::Type type;
+ std::string data;
+ base::NullableString16 file_path;
+ GURL filesystem_url;
+ int64_t file_start;
+ int64_t file_length;
+ double file_modification_time;
+ std::string blob_uuid;
+
+ ExplodedHttpBodyElement();
+ ExplodedHttpBodyElement(const ExplodedHttpBodyElement& other);
+ ~ExplodedHttpBodyElement();
+};
struct CONTENT_EXPORT ExplodedHttpBody {
base::NullableString16 http_content_type;
« no previous file with comments | « no previous file | content/common/page_state_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698