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

Side by Side Diff: content/common/navigation_params.cc

Issue 979443002: PlzNavigate: send history params at commit time to the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments Created 5 years, 9 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
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/common/navigation_params.h" 5 #include "content/common/navigation_params.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 : method(method), 51 : method(method),
52 headers(headers), 52 headers(headers),
53 load_flags(load_flags), 53 load_flags(load_flags),
54 has_user_gesture(has_user_gesture) { 54 has_user_gesture(has_user_gesture) {
55 } 55 }
56 56
57 CommitNavigationParams::CommitNavigationParams() 57 CommitNavigationParams::CommitNavigationParams()
58 : is_overriding_user_agent(false) { 58 : is_overriding_user_agent(false) {
59 } 59 }
60 60
61 CommitNavigationParams::CommitNavigationParams(const PageState& page_state, 61 CommitNavigationParams::CommitNavigationParams(bool is_overriding_user_agent,
62 bool is_overriding_user_agent,
63 base::TimeTicks navigation_start) 62 base::TimeTicks navigation_start)
64 : page_state(page_state), 63 : is_overriding_user_agent(is_overriding_user_agent),
65 is_overriding_user_agent(is_overriding_user_agent),
66 browser_navigation_start(navigation_start) { 64 browser_navigation_start(navigation_start) {
67 } 65 }
68 66
69 CommitNavigationParams::~CommitNavigationParams() {} 67 CommitNavigationParams::~CommitNavigationParams() {}
70 68
69 HistoryNavigationParams::HistoryNavigationParams()
70 : page_id(-1),
71 pending_history_list_offset(-1),
72 current_history_list_offset(-1),
73 current_history_list_length(-1),
74 should_clear_history_list(false) {
75 }
76
77 HistoryNavigationParams::HistoryNavigationParams(
78 const PageState& page_state,
79 int32 page_id,
80 int pending_history_list_offset,
81 int current_history_list_offset,
82 int current_history_list_length,
83 bool should_clear_history_list)
84 : page_state(page_state),
85 page_id(page_id),
86 pending_history_list_offset(pending_history_list_offset),
87 current_history_list_offset(current_history_list_offset),
88 current_history_list_length(current_history_list_length),
89 should_clear_history_list(should_clear_history_list) {
90 }
91
92 HistoryNavigationParams::~HistoryNavigationParams() {
93 }
94
71 } // namespace content 95 } // namespace content
OLDNEW
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698