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 "content/common/resource_request_body_impl.h" |
16 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 16 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
17 #include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h" | 17 #include "third_party/WebKit/public/platform/WebHistoryScrollRestorationType.h" |
18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
19 #include "ui/gfx/geometry/point.h" | 19 #include "ui/gfx/geometry/point.h" |
20 #include "ui/gfx/geometry/point_f.h" | 20 #include "ui/gfx/geometry/point_f.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 struct CONTENT_EXPORT ExplodedHttpBody { | 25 struct CONTENT_EXPORT ExplodedHttpBody { |
26 base::NullableString16 http_content_type; | 26 base::NullableString16 http_content_type; |
27 scoped_refptr<ResourceRequestBody> request_body; | 27 scoped_refptr<ResourceRequestBodyImpl> request_body; |
28 bool contains_passwords; | 28 bool contains_passwords; |
29 | 29 |
30 ExplodedHttpBody(); | 30 ExplodedHttpBody(); |
31 ~ExplodedHttpBody(); | 31 ~ExplodedHttpBody(); |
32 }; | 32 }; |
33 | 33 |
34 struct CONTENT_EXPORT ExplodedFrameState { | 34 struct CONTENT_EXPORT ExplodedFrameState { |
35 base::NullableString16 url_string; | 35 base::NullableString16 url_string; |
36 base::NullableString16 referrer; | 36 base::NullableString16 referrer; |
37 base::NullableString16 target; | 37 base::NullableString16 target; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #if defined(OS_ANDROID) | 75 #if defined(OS_ANDROID) |
76 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( | 76 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( |
77 const std::string& encoded, | 77 const std::string& encoded, |
78 float device_scale_factor, | 78 float device_scale_factor, |
79 ExplodedPageState* exploded); | 79 ExplodedPageState* exploded); |
80 #endif | 80 #endif |
81 | 81 |
82 } // namespace content | 82 } // namespace content |
83 | 83 |
84 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 84 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ |
OLD | NEW |