| Index: content/common/navigation_params.cc
|
| diff --git a/content/common/navigation_params.cc b/content/common/navigation_params.cc
|
| index 18628b4ac8697d5a6ffaccbca33f4eea8db309bc..60508c33a20c19c1ce01e72d79a20696c3ff8212 100644
|
| --- a/content/common/navigation_params.cc
|
| +++ b/content/common/navigation_params.cc
|
| @@ -39,26 +39,41 @@ CommonNavigationParams::CommonNavigationParams(
|
| CommonNavigationParams::~CommonNavigationParams() {
|
| }
|
|
|
| -BeginNavigationParams::BeginNavigationParams()
|
| - : load_flags(0),
|
| - has_user_gesture(false) {
|
| +StartNavigationParams::StartNavigationParams()
|
| + : is_post(false),
|
| + should_replace_current_entry(false),
|
| + transferred_request_child_id(-1),
|
| + transferred_request_request_id(-1) {
|
| }
|
|
|
| -BeginNavigationParams::BeginNavigationParams(std::string method,
|
| - std::string headers,
|
| - int load_flags,
|
| - bool has_user_gesture)
|
| - : method(method),
|
| - headers(headers),
|
| - load_flags(load_flags),
|
| - has_user_gesture(has_user_gesture) {
|
| +StartNavigationParams::StartNavigationParams(
|
| + bool is_post,
|
| + const std::string& extra_headers,
|
| + const std::vector<unsigned char>& browser_initiated_post_data,
|
| + bool should_replace_current_entry,
|
| + int transferred_request_child_id,
|
| + int transferred_request_request_id)
|
| + : is_post(is_post),
|
| + extra_headers(extra_headers),
|
| + browser_initiated_post_data(browser_initiated_post_data),
|
| + should_replace_current_entry(should_replace_current_entry),
|
| + transferred_request_child_id(transferred_request_child_id),
|
| + transferred_request_request_id(transferred_request_request_id) {
|
| +}
|
| +
|
| +StartNavigationParams::~StartNavigationParams() {
|
| }
|
|
|
| CommitNavigationParams::CommitNavigationParams()
|
| : is_overriding_user_agent(false),
|
| browser_navigation_start(base::TimeTicks::Now()),
|
| can_load_local_resources(false),
|
| - request_time(base::Time::Now()) {
|
| + request_time(base::Time::Now()),
|
| + page_id(-1),
|
| + pending_history_list_offset(-1),
|
| + current_history_list_offset(-1),
|
| + current_history_list_length(0),
|
| + should_clear_history_list(false) {
|
| }
|
|
|
| CommitNavigationParams::CommitNavigationParams(
|
| @@ -67,33 +82,20 @@ CommitNavigationParams::CommitNavigationParams(
|
| const std::vector<GURL>& redirects,
|
| bool can_load_local_resources,
|
| const std::string& frame_to_navigate,
|
| - base::Time request_time)
|
| - : is_overriding_user_agent(is_overriding_user_agent),
|
| - browser_navigation_start(navigation_start),
|
| - redirects(redirects),
|
| - can_load_local_resources(can_load_local_resources),
|
| - frame_to_navigate(frame_to_navigate),
|
| - request_time(request_time) {
|
| -}
|
| -
|
| -CommitNavigationParams::~CommitNavigationParams() {}
|
| -
|
| -HistoryNavigationParams::HistoryNavigationParams()
|
| - : page_id(-1),
|
| - pending_history_list_offset(-1),
|
| - current_history_list_offset(-1),
|
| - current_history_list_length(0),
|
| - should_clear_history_list(false) {
|
| -}
|
| -
|
| -HistoryNavigationParams::HistoryNavigationParams(
|
| + base::Time request_time,
|
| const PageState& page_state,
|
| int32 page_id,
|
| int pending_history_list_offset,
|
| int current_history_list_offset,
|
| int current_history_list_length,
|
| bool should_clear_history_list)
|
| - : page_state(page_state),
|
| + : is_overriding_user_agent(is_overriding_user_agent),
|
| + browser_navigation_start(navigation_start),
|
| + redirects(redirects),
|
| + can_load_local_resources(can_load_local_resources),
|
| + frame_to_navigate(frame_to_navigate),
|
| + request_time(request_time),
|
| + page_state(page_state),
|
| page_id(page_id),
|
| pending_history_list_offset(pending_history_list_offset),
|
| current_history_list_offset(current_history_list_offset),
|
| @@ -101,46 +103,32 @@ HistoryNavigationParams::HistoryNavigationParams(
|
| should_clear_history_list(should_clear_history_list) {
|
| }
|
|
|
| -HistoryNavigationParams::~HistoryNavigationParams() {
|
| -}
|
| -
|
| -StartNavigationParams::StartNavigationParams()
|
| - : is_post(false),
|
| - should_replace_current_entry(false),
|
| - transferred_request_child_id(-1),
|
| - transferred_request_request_id(-1) {
|
| +CommitNavigationParams::~CommitNavigationParams() {
|
| }
|
|
|
| -StartNavigationParams::StartNavigationParams(
|
| - bool is_post,
|
| - const std::string& extra_headers,
|
| - const std::vector<unsigned char>& browser_initiated_post_data,
|
| - bool should_replace_current_entry,
|
| - int transferred_request_child_id,
|
| - int transferred_request_request_id)
|
| - : is_post(is_post),
|
| - extra_headers(extra_headers),
|
| - browser_initiated_post_data(browser_initiated_post_data),
|
| - should_replace_current_entry(should_replace_current_entry),
|
| - transferred_request_child_id(transferred_request_child_id),
|
| - transferred_request_request_id(transferred_request_request_id) {
|
| +NavigationParams::NavigationParams(const CommonNavigationParams& common_params,
|
| + const StartNavigationParams& start_params,
|
| + const CommitNavigationParams& commit_params)
|
| + : common_params(common_params),
|
| + start_params(start_params),
|
| + commit_params(commit_params) {
|
| }
|
|
|
| -StartNavigationParams::~StartNavigationParams() {
|
| +NavigationParams::~NavigationParams() {
|
| }
|
|
|
| -NavigationParams::NavigationParams(
|
| - const CommonNavigationParams& common_params,
|
| - const StartNavigationParams& start_params,
|
| - const CommitNavigationParams& commit_params,
|
| - const HistoryNavigationParams& history_params)
|
| - : common_params(common_params),
|
| - start_params(start_params),
|
| - commit_params(commit_params),
|
| - history_params(history_params) {
|
| +BeginNavigationParams::BeginNavigationParams()
|
| + : load_flags(0), has_user_gesture(false) {
|
| }
|
|
|
| -NavigationParams::~NavigationParams() {
|
| +BeginNavigationParams::BeginNavigationParams(std::string method,
|
| + std::string headers,
|
| + int load_flags,
|
| + bool has_user_gesture)
|
| + : method(method),
|
| + headers(headers),
|
| + load_flags(load_flags),
|
| + has_user_gesture(has_user_gesture) {
|
| }
|
|
|
| } // namespace content
|
|
|