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

Unified Diff: content/public/common/page_state.h

Issue 2309583002: Fix for the NavigationControllerTest.BackSubframe test failures with PlzNavigate (Closed)
Patch Set: Set document_sequence_number correctly and use the same strategy like Blink to generate these numbe… Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/page_state.h
diff --git a/content/public/common/page_state.h b/content/public/common/page_state.h
index c38f961bb24d4bccdca34465292cbe130ca36c1f..6cf6c09116e7fba802190cbae64d2a393689b0a4 100644
--- a/content/public/common/page_state.h
+++ b/content/public/common/page_state.h
@@ -35,6 +35,13 @@ class CONTENT_EXPORT PageState {
const char* optional_body_data,
const base::FilePath* optional_body_file_path);
+ // Creates an encoded page state from the |url|, |item_sequence_mnumber| and
+ // |document_sequence_number| parameters.
+ static PageState CreateForTestingWithSequenceNumbers(
+ const GURL& url,
+ int64_t item_sequence_number,
+ int64_t document_sequence_number);
+
PageState();
bool IsValid() const;
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl_unittest.cc ('k') | content/public/common/page_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698