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

Side by Side Diff: content/common/page_state_serialization.h

Issue 2710063002: Revert of Add DidSaveScrollOrScaleState flag to prevent restoreScrollPosition... (Closed)
Patch Set: rebase update Created 3 years, 8 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
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 <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 ~ExplodedHttpBody(); 32 ~ExplodedHttpBody();
33 }; 33 };
34 34
35 struct CONTENT_EXPORT ExplodedFrameState { 35 struct CONTENT_EXPORT ExplodedFrameState {
36 base::NullableString16 url_string; 36 base::NullableString16 url_string;
37 base::NullableString16 referrer; 37 base::NullableString16 referrer;
38 base::NullableString16 target; 38 base::NullableString16 target;
39 base::NullableString16 state_object; 39 base::NullableString16 state_object;
40 std::vector<base::NullableString16> document_state; 40 std::vector<base::NullableString16> document_state;
41 blink::WebHistoryScrollRestorationType scroll_restoration_type; 41 blink::WebHistoryScrollRestorationType scroll_restoration_type;
42 bool did_save_scroll_or_scale_state;
43 gfx::PointF visual_viewport_scroll_offset; 42 gfx::PointF visual_viewport_scroll_offset;
44 gfx::Point scroll_offset; 43 gfx::Point scroll_offset;
45 int64_t item_sequence_number; 44 int64_t item_sequence_number;
46 int64_t document_sequence_number; 45 int64_t document_sequence_number;
47 double page_scale_factor; 46 double page_scale_factor;
48 blink::WebReferrerPolicy referrer_policy; 47 blink::WebReferrerPolicy referrer_policy;
49 ExplodedHttpBody http_body; 48 ExplodedHttpBody http_body;
50 std::vector<ExplodedFrameState> children; 49 std::vector<ExplodedFrameState> children;
51 50
52 ExplodedFrameState(); 51 ExplodedFrameState();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 size_t size); 88 size_t size);
90 89
91 // Encodes |resource_request_body| into |encoded|. 90 // Encodes |resource_request_body| into |encoded|.
92 std::string EncodeResourceRequestBody( 91 std::string EncodeResourceRequestBody(
93 const ResourceRequestBodyImpl& resource_request_body); 92 const ResourceRequestBodyImpl& resource_request_body);
94 #endif 93 #endif
95 94
96 } // namespace content 95 } // namespace content
97 96
98 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ 97 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl_browsertest.cc ('k') | content/common/page_state_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698