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

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

Issue 971653004: Remove the FrameMsg_Navigate_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history-params
Patch Set: Addressed Nasko's 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 std::string headers, 48 std::string headers,
49 int load_flags, 49 int load_flags,
50 bool has_user_gesture) 50 bool has_user_gesture)
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 browser_navigation_start(base::TimeTicks::Now()),
60 can_load_local_resources(false),
61 request_time(base::Time::Now()) {
59 } 62 }
60 63
61 CommitNavigationParams::CommitNavigationParams(bool is_overriding_user_agent, 64 CommitNavigationParams::CommitNavigationParams(
62 base::TimeTicks navigation_start) 65 bool is_overriding_user_agent,
66 base::TimeTicks navigation_start,
67 const std::vector<GURL>& redirects,
68 bool can_load_local_resources,
69 const std::string& frame_to_navigate,
70 base::Time request_time)
63 : is_overriding_user_agent(is_overriding_user_agent), 71 : is_overriding_user_agent(is_overriding_user_agent),
64 browser_navigation_start(navigation_start) { 72 browser_navigation_start(navigation_start),
73 redirects(redirects),
74 can_load_local_resources(can_load_local_resources),
75 frame_to_navigate(frame_to_navigate),
76 request_time(request_time) {
65 } 77 }
66 78
67 CommitNavigationParams::~CommitNavigationParams() {} 79 CommitNavigationParams::~CommitNavigationParams() {}
68 80
69 HistoryNavigationParams::HistoryNavigationParams() 81 HistoryNavigationParams::HistoryNavigationParams()
70 : page_id(-1), 82 : page_id(-1),
71 pending_history_list_offset(-1), 83 pending_history_list_offset(-1),
72 current_history_list_offset(-1), 84 current_history_list_offset(-1),
73 current_history_list_length(-1), 85 current_history_list_length(0),
74 should_clear_history_list(false) { 86 should_clear_history_list(false) {
75 } 87 }
76 88
77 HistoryNavigationParams::HistoryNavigationParams( 89 HistoryNavigationParams::HistoryNavigationParams(
78 const PageState& page_state, 90 const PageState& page_state,
79 int32 page_id, 91 int32 page_id,
80 int pending_history_list_offset, 92 int pending_history_list_offset,
81 int current_history_list_offset, 93 int current_history_list_offset,
82 int current_history_list_length, 94 int current_history_list_length,
83 bool should_clear_history_list) 95 bool should_clear_history_list)
84 : page_state(page_state), 96 : page_state(page_state),
85 page_id(page_id), 97 page_id(page_id),
86 pending_history_list_offset(pending_history_list_offset), 98 pending_history_list_offset(pending_history_list_offset),
87 current_history_list_offset(current_history_list_offset), 99 current_history_list_offset(current_history_list_offset),
88 current_history_list_length(current_history_list_length), 100 current_history_list_length(current_history_list_length),
89 should_clear_history_list(should_clear_history_list) { 101 should_clear_history_list(should_clear_history_list) {
90 } 102 }
91 103
92 HistoryNavigationParams::~HistoryNavigationParams() { 104 HistoryNavigationParams::~HistoryNavigationParams() {
93 } 105 }
94 106
107 StartNavigationParams::StartNavigationParams()
108 : is_post(false),
109 should_replace_current_entry(false),
110 transferred_request_child_id(-1),
111 transferred_request_request_id(-1) {
112 }
113
114 StartNavigationParams::StartNavigationParams(
115 bool is_post,
116 const std::string& extra_headers,
117 const std::vector<unsigned char>& browser_initiated_post_data,
118 bool should_replace_current_entry,
119 int transferred_request_child_id,
120 int transferred_request_request_id)
121 : is_post(is_post),
122 extra_headers(extra_headers),
123 browser_initiated_post_data(browser_initiated_post_data),
124 should_replace_current_entry(should_replace_current_entry),
125 transferred_request_child_id(transferred_request_child_id),
126 transferred_request_request_id(transferred_request_request_id) {
127 }
128
129 StartNavigationParams::~StartNavigationParams() {
130 }
131
132 NavigationParams::NavigationParams(
133 const CommonNavigationParams& common_params,
134 const StartNavigationParams& start_params,
135 const CommitNavigationParams& commit_params,
136 const HistoryNavigationParams& history_params)
137 : common_params(common_params),
138 start_params(start_params),
139 commit_params(commit_params),
140 history_params(history_params) {
141 }
142
143 NavigationParams::~NavigationParams() {
144 }
145
95 } // namespace content 146 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698