OLD | NEW |
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" |
15 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 16 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
16 #include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h" | 17 #include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h" |
17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
18 #include "ui/gfx/geometry/point.h" | 19 #include "ui/gfx/geometry/point.h" |
19 #include "ui/gfx/geometry/point_f.h" | 20 #include "ui/gfx/geometry/point_f.h" |
20 #include "url/gurl.h" | 21 #include "url/gurl.h" |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 | 24 |
24 class ResourceRequestBody; | 25 using ExplodedHttpBodyElement = ResourceRequestBody::Element; |
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 }; | |
40 | 26 |
41 struct CONTENT_EXPORT ExplodedHttpBody { | 27 struct CONTENT_EXPORT ExplodedHttpBody { |
42 base::NullableString16 http_content_type; | 28 base::NullableString16 http_content_type; |
43 std::vector<ExplodedHttpBodyElement> elements; | 29 std::vector<ExplodedHttpBodyElement> elements; |
44 int64_t identifier; | 30 int64_t identifier; |
45 bool contains_passwords; | 31 bool contains_passwords; |
46 bool is_null; | 32 bool is_null; |
47 | 33 |
48 ExplodedHttpBody(); | 34 ExplodedHttpBody(); |
49 ~ExplodedHttpBody(); | 35 ~ExplodedHttpBody(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 #if defined(OS_ANDROID) | 88 #if defined(OS_ANDROID) |
103 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( | 89 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( |
104 const std::string& encoded, | 90 const std::string& encoded, |
105 float device_scale_factor, | 91 float device_scale_factor, |
106 ExplodedPageState* exploded); | 92 ExplodedPageState* exploded); |
107 #endif | 93 #endif |
108 | 94 |
109 } // namespace content | 95 } // namespace content |
110 | 96 |
111 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 97 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ |
OLD | NEW |