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

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: 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), can_load_local_resources(false) {
59 } 59 }
60 60
61 CommitNavigationParams::CommitNavigationParams(bool is_overriding_user_agent, 61 CommitNavigationParams::CommitNavigationParams(
62 base::TimeTicks navigation_start) 62 bool is_overriding_user_agent,
63 base::TimeTicks navigation_start,
64 const std::vector<GURL>& redirects,
65 bool can_load_local_resources,
66 const std::string& frame_to_navigate,
67 base::Time request_time)
63 : is_overriding_user_agent(is_overriding_user_agent), 68 : is_overriding_user_agent(is_overriding_user_agent),
64 browser_navigation_start(navigation_start) { 69 browser_navigation_start(navigation_start),
70 redirects(redirects),
71 can_load_local_resources(can_load_local_resources),
72 frame_to_navigate(frame_to_navigate),
73 request_time(request_time) {
65 } 74 }
66 75
67 CommitNavigationParams::~CommitNavigationParams() {} 76 CommitNavigationParams::~CommitNavigationParams() {}
68 77
69 HistoryNavigationParams::HistoryNavigationParams() 78 HistoryNavigationParams::HistoryNavigationParams()
70 : page_id(-1), 79 : page_id(-1),
71 pending_history_list_offset(-1), 80 pending_history_list_offset(-1),
72 current_history_list_offset(-1), 81 current_history_list_offset(-1),
73 current_history_list_length(-1), 82 current_history_list_length(0),
74 should_clear_history_list(false) { 83 should_clear_history_list(false) {
75 } 84 }
76 85
77 HistoryNavigationParams::HistoryNavigationParams( 86 HistoryNavigationParams::HistoryNavigationParams(
78 const PageState& page_state, 87 const PageState& page_state,
79 int32 page_id, 88 int32 page_id,
80 int pending_history_list_offset, 89 int pending_history_list_offset,
81 int current_history_list_offset, 90 int current_history_list_offset,
82 int current_history_list_length, 91 int current_history_list_length,
83 bool should_clear_history_list) 92 bool should_clear_history_list)
84 : page_state(page_state), 93 : page_state(page_state),
85 page_id(page_id), 94 page_id(page_id),
86 pending_history_list_offset(pending_history_list_offset), 95 pending_history_list_offset(pending_history_list_offset),
87 current_history_list_offset(current_history_list_offset), 96 current_history_list_offset(current_history_list_offset),
88 current_history_list_length(current_history_list_length), 97 current_history_list_length(current_history_list_length),
89 should_clear_history_list(should_clear_history_list) { 98 should_clear_history_list(should_clear_history_list) {
90 } 99 }
91 100
92 HistoryNavigationParams::~HistoryNavigationParams() { 101 HistoryNavigationParams::~HistoryNavigationParams() {
93 } 102 }
94 103
104 StartNavigationParams::StartNavigationParams()
105 : is_post(false),
106 should_replace_current_entry(false),
107 transferred_request_child_id(-1),
108 transferred_request_request_id(-1) {
109 }
110
111 StartNavigationParams::StartNavigationParams(
112 bool is_post,
113 const std::string& extra_headers,
114 const std::vector<unsigned char>& browser_initiated_post_data,
115 bool should_replace_current_entry,
116 int transferred_request_child_id,
117 int transferred_request_request_id)
118 : is_post(is_post),
119 extra_headers(extra_headers),
120 browser_initiated_post_data(browser_initiated_post_data),
121 should_replace_current_entry(should_replace_current_entry),
122 transferred_request_child_id(transferred_request_child_id),
123 transferred_request_request_id(transferred_request_request_id) {
124 }
125
126 StartNavigationParams::~StartNavigationParams() {
127 }
128
95 } // namespace content 129 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698