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

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

Issue 2628683003: Add DidSaveScrollOrScaleState flag to prevent restoreScrollPositionAndViewState restore from default (Closed)
Patch Set: add dump file Created 3 years, 10 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;
42 gfx::PointF visual_viewport_scroll_offset; 43 gfx::PointF visual_viewport_scroll_offset;
43 gfx::Point scroll_offset; 44 gfx::Point scroll_offset;
44 int64_t item_sequence_number; 45 int64_t item_sequence_number;
45 int64_t document_sequence_number; 46 int64_t document_sequence_number;
46 double page_scale_factor; 47 double page_scale_factor;
47 blink::WebReferrerPolicy referrer_policy; 48 blink::WebReferrerPolicy referrer_policy;
48 ExplodedHttpBody http_body; 49 ExplodedHttpBody http_body;
49 std::vector<ExplodedFrameState> children; 50 std::vector<ExplodedFrameState> children;
50 51
51 ExplodedFrameState(); 52 ExplodedFrameState();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 size_t size); 89 size_t size);
89 90
90 // Encodes |resource_request_body| into |encoded|. 91 // Encodes |resource_request_body| into |encoded|.
91 std::string EncodeResourceRequestBody( 92 std::string EncodeResourceRequestBody(
92 const ResourceRequestBodyImpl& resource_request_body); 93 const ResourceRequestBodyImpl& resource_request_body);
93 #endif 94 #endif
94 95
95 } // namespace content 96 } // namespace content
96 97
97 #endif // CONTENT_COMMON_PAGE_STATE_SERIALIZATION_H_ 98 #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