| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/browser/navigation_controller.h" | 5 #include "content/public/browser/navigation_controller.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 |
| 11 NavigationController::LoadURLParams::LoadURLParams(const GURL& url) | 11 NavigationController::LoadURLParams::LoadURLParams(const GURL& url) |
| 12 : url(url), | 12 : url(url), |
| 13 load_type(LOAD_TYPE_DEFAULT), | 13 load_type(LOAD_TYPE_DEFAULT), |
| 14 transition_type(PAGE_TRANSITION_LINK), | 14 transition_type(PAGE_TRANSITION_LINK), |
| 15 is_renderer_initiated(false), | 15 is_renderer_initiated(false), |
| 16 override_user_agent(UA_OVERRIDE_INHERIT), | 16 override_user_agent(UA_OVERRIDE_INHERIT), |
| 17 browser_initiated_post_data(NULL), | 17 browser_initiated_post_data(NULL), |
| 18 can_load_local_resources(false), | 18 can_load_local_resources(false), |
| 19 should_replace_current_entry(false), | 19 should_replace_current_entry(false), |
| 20 should_clear_history_list(false) { | 20 should_clear_history_list(false), |
| 21 should_stay_in_site_instance(false) { |
| 21 } | 22 } |
| 22 | 23 |
| 23 NavigationController::LoadURLParams::~LoadURLParams() { | 24 NavigationController::LoadURLParams::~LoadURLParams() { |
| 24 } | 25 } |
| 25 | 26 |
| 26 NavigationController::LoadURLParams::LoadURLParams( | 27 NavigationController::LoadURLParams::LoadURLParams( |
| 27 const NavigationController::LoadURLParams& other) | 28 const NavigationController::LoadURLParams& other) |
| 28 : url(other.url), | 29 : url(other.url), |
| 29 load_type(other.load_type), | 30 load_type(other.load_type), |
| 30 transition_type(other.transition_type), | 31 transition_type(other.transition_type), |
| 31 referrer(other.referrer), | 32 referrer(other.referrer), |
| 32 extra_headers(other.extra_headers), | 33 extra_headers(other.extra_headers), |
| 33 is_renderer_initiated(other.is_renderer_initiated), | 34 is_renderer_initiated(other.is_renderer_initiated), |
| 34 override_user_agent(other.override_user_agent), | 35 override_user_agent(other.override_user_agent), |
| 35 transferred_global_request_id(other.transferred_global_request_id), | 36 transferred_global_request_id(other.transferred_global_request_id), |
| 36 base_url_for_data_url(other.base_url_for_data_url), | 37 base_url_for_data_url(other.base_url_for_data_url), |
| 37 virtual_url_for_data_url(other.virtual_url_for_data_url), | 38 virtual_url_for_data_url(other.virtual_url_for_data_url), |
| 38 browser_initiated_post_data(other.browser_initiated_post_data), | 39 browser_initiated_post_data(other.browser_initiated_post_data), |
| 39 should_replace_current_entry(false), | 40 should_replace_current_entry(false), |
| 40 should_clear_history_list(false) { | 41 should_clear_history_list(false), |
| 42 should_stay_in_site_instance(false) { |
| 41 } | 43 } |
| 42 | 44 |
| 43 NavigationController::LoadURLParams& | 45 NavigationController::LoadURLParams& |
| 44 NavigationController::LoadURLParams::operator=( | 46 NavigationController::LoadURLParams::operator=( |
| 45 const NavigationController::LoadURLParams& other) { | 47 const NavigationController::LoadURLParams& other) { |
| 46 url = other.url; | 48 url = other.url; |
| 47 load_type = other.load_type; | 49 load_type = other.load_type; |
| 48 transition_type = other.transition_type; | 50 transition_type = other.transition_type; |
| 49 referrer = other.referrer; | 51 referrer = other.referrer; |
| 50 extra_headers = other.extra_headers; | 52 extra_headers = other.extra_headers; |
| 51 is_renderer_initiated = other.is_renderer_initiated; | 53 is_renderer_initiated = other.is_renderer_initiated; |
| 52 override_user_agent = other.override_user_agent; | 54 override_user_agent = other.override_user_agent; |
| 53 transferred_global_request_id = other.transferred_global_request_id; | 55 transferred_global_request_id = other.transferred_global_request_id; |
| 54 base_url_for_data_url = other.base_url_for_data_url; | 56 base_url_for_data_url = other.base_url_for_data_url; |
| 55 virtual_url_for_data_url = other.virtual_url_for_data_url; | 57 virtual_url_for_data_url = other.virtual_url_for_data_url; |
| 56 browser_initiated_post_data = other.browser_initiated_post_data; | 58 browser_initiated_post_data = other.browser_initiated_post_data; |
| 57 should_replace_current_entry = other.should_replace_current_entry; | 59 should_replace_current_entry = other.should_replace_current_entry; |
| 58 should_clear_history_list = other.should_clear_history_list; | 60 should_clear_history_list = other.should_clear_history_list; |
| 61 should_stay_in_site_instance = other.should_stay_in_site_instance; |
| 59 | 62 |
| 60 return *this; | 63 return *this; |
| 61 } | 64 } |
| 62 | 65 |
| 63 } // namespace content | 66 } // namespace content |
| OLD | NEW |