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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/common/page_state_serialization.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ 5 #ifndef CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_
6 #define CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ 6 #define CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/strings/nullable_string16.h" 12 #include "base/strings/nullable_string16.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/resource_request_body.h"
16 #include "third_party/WebKit/public/platform/WebHTTPBody.h" 15 #include "third_party/WebKit/public/platform/WebHTTPBody.h"
17 #include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h" 16 #include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h"
18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
19 #include "ui/gfx/geometry/point.h" 18 #include "ui/gfx/geometry/point.h"
20 #include "ui/gfx/geometry/point_f.h" 19 #include "ui/gfx/geometry/point_f.h"
21 #include "url/gurl.h" 20 #include "url/gurl.h"
22 21
23 namespace content { 22 namespace content {
24 23
25 using ExplodedHttpBodyElement = ResourceRequestBody::Element; 24 class ResourceRequestBody;
25
26 struct CONTENT_EXPORT ExplodedHttpBodyElement {
27 blink::WebHTTPBody::Element::Type type;
28 std::string data;
29 base::NullableString16 file_path;
30 GURL filesystem_url;
31 int64_t file_start;
32 int64_t file_length;
33 double file_modification_time;
34 std::string blob_uuid;
35
36 ExplodedHttpBodyElement();
37 ExplodedHttpBodyElement(const ExplodedHttpBodyElement& other);
38 ~ExplodedHttpBodyElement();
39 };
26 40
27 struct CONTENT_EXPORT ExplodedHttpBody { 41 struct CONTENT_EXPORT ExplodedHttpBody {
28 base::NullableString16 http_content_type; 42 base::NullableString16 http_content_type;
29 std::vector<ExplodedHttpBodyElement> elements; 43 std::vector<ExplodedHttpBodyElement> elements;
30 int64_t identifier; 44 int64_t identifier;
31 bool contains_passwords; 45 bool contains_passwords;
32 bool is_null; 46 bool is_null;
33 47
34 ExplodedHttpBody(); 48 ExplodedHttpBody();
35 ~ExplodedHttpBody(); 49 ~ExplodedHttpBody();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #if defined(OS_ANDROID) 102 #if defined(OS_ANDROID)
89 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( 103 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting(
90 const std::string& encoded, 104 const std::string& encoded,
91 float device_scale_factor, 105 float device_scale_factor,
92 ExplodedPageState* exploded); 106 ExplodedPageState* exploded);
93 #endif 107 #endif
94 108
95 } // namespace content 109 } // namespace content
96 110
97 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ 111 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_
OLDNEW
« 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