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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 struct CONTENT_EXPORT ExplodedFrameState { | 43 struct CONTENT_EXPORT ExplodedFrameState { |
44 base::NullableString16 url_string; | 44 base::NullableString16 url_string; |
45 base::NullableString16 original_url_string; | 45 base::NullableString16 original_url_string; |
46 base::NullableString16 referrer; | 46 base::NullableString16 referrer; |
47 base::NullableString16 target; | 47 base::NullableString16 target; |
48 base::NullableString16 state_object; | 48 base::NullableString16 state_object; |
49 std::vector<base::NullableString16> document_state; | 49 std::vector<base::NullableString16> document_state; |
50 gfx::Point scroll_offset; | 50 gfx::Point scroll_offset; |
51 int64 item_sequence_number; | 51 int64 item_sequence_number; |
52 int64 document_sequence_number; | 52 int64 document_sequence_number; |
| 53 int64 target_frame_id; |
53 double page_scale_factor; | 54 double page_scale_factor; |
54 ExplodedHttpBody http_body; | 55 ExplodedHttpBody http_body; |
55 std::vector<ExplodedFrameState> children; | 56 std::vector<ExplodedFrameState> children; |
56 | 57 |
57 ExplodedFrameState(); | 58 ExplodedFrameState(); |
58 ~ExplodedFrameState(); | 59 ~ExplodedFrameState(); |
59 }; | 60 }; |
60 | 61 |
61 struct CONTENT_EXPORT ExplodedPageState { | 62 struct CONTENT_EXPORT ExplodedPageState { |
62 std::vector<base::NullableString16> referenced_files; | 63 std::vector<base::NullableString16> referenced_files; |
(...skipping 11 matching lines...) Expand all Loading... |
74 #if defined(OS_ANDROID) | 75 #if defined(OS_ANDROID) |
75 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( | 76 CONTENT_EXPORT bool DecodePageStateWithDeviceScaleFactorForTesting( |
76 const std::string& encoded, | 77 const std::string& encoded, |
77 float device_scale_factor, | 78 float device_scale_factor, |
78 ExplodedPageState* exploded); | 79 ExplodedPageState* exploded); |
79 #endif | 80 #endif |
80 | 81 |
81 } // namespace content | 82 } // namespace content |
82 | 83 |
83 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ | 84 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ |
OLD | NEW |