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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/nullable_string16.h" | 10 #include "base/strings/nullable_string16.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 base::NullableString16 url_string; | 47 base::NullableString16 url_string; |
48 base::NullableString16 referrer; | 48 base::NullableString16 referrer; |
49 base::NullableString16 target; | 49 base::NullableString16 target; |
50 base::NullableString16 state_object; | 50 base::NullableString16 state_object; |
51 std::vector<base::NullableString16> document_state; | 51 std::vector<base::NullableString16> document_state; |
52 blink::WebHistoryScrollRestorationType scroll_restoration_type; | 52 blink::WebHistoryScrollRestorationType scroll_restoration_type; |
53 gfx::PointF pinch_viewport_scroll_offset; | 53 gfx::PointF pinch_viewport_scroll_offset; |
54 gfx::Point scroll_offset; | 54 gfx::Point scroll_offset; |
55 int64 item_sequence_number; | 55 int64 item_sequence_number; |
56 int64 document_sequence_number; | 56 int64 document_sequence_number; |
57 int64 frame_sequence_number; | |
58 double page_scale_factor; | 57 double page_scale_factor; |
59 blink::WebReferrerPolicy referrer_policy; | 58 blink::WebReferrerPolicy referrer_policy; |
60 ExplodedHttpBody http_body; | 59 ExplodedHttpBody http_body; |
61 std::vector<ExplodedFrameState> children; | 60 std::vector<ExplodedFrameState> children; |
62 | 61 |
63 ExplodedFrameState(); | 62 ExplodedFrameState(); |
64 ExplodedFrameState(const ExplodedFrameState& other); | 63 ExplodedFrameState(const ExplodedFrameState& other); |
65 ~ExplodedFrameState(); | 64 ~ExplodedFrameState(); |
66 void operator=(const ExplodedFrameState& other); | 65 void operator=(const ExplodedFrameState& other); |
67 | 66 |
(...skipping 20 matching lines...) Expand all Loading... |
88 #if defined(OS_ANDROID) | 87 #if defined(OS_ANDROID) |
89 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( | 88 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( |
90 const std::string& encoded, | 89 const std::string& encoded, |
91 float device_scale_factor, | 90 float device_scale_factor, |
92 ExplodedPageState* exploded); | 91 ExplodedPageState* exploded); |
93 #endif | 92 #endif |
94 | 93 |
95 } // namespace content | 94 } // namespace content |
96 | 95 |
97 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 96 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ |
OLD | NEW |