navigation_controller.cc revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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 3// found in the LICENSE file. 4 5#include "content/public/browser/navigation_controller.h" 6 7#include "base/memory/ref_counted_memory.h" 8 9namespace content { 10 11NavigationController::LoadURLParams::LoadURLParams(const GURL& url) 12 : url(url), 13 load_type(LOAD_TYPE_DEFAULT), 14 transition_type(PAGE_TRANSITION_LINK), 15 is_renderer_initiated(false), 16 override_user_agent(UA_OVERRIDE_INHERIT), 17 browser_initiated_post_data(NULL), 18 can_load_local_resources(false), 19 is_cross_site_redirect(false) { 20} 21 22NavigationController::LoadURLParams::~LoadURLParams() { 23} 24 25NavigationController::LoadURLParams::LoadURLParams( 26 const NavigationController::LoadURLParams& other) 27 : url(other.url), 28 load_type(other.load_type), 29 transition_type(other.transition_type), 30 referrer(other.referrer), 31 extra_headers(other.extra_headers), 32 is_renderer_initiated(other.is_renderer_initiated), 33 override_user_agent(other.override_user_agent), 34 transferred_global_request_id(other.transferred_global_request_id), 35 base_url_for_data_url(other.base_url_for_data_url), 36 virtual_url_for_data_url(other.virtual_url_for_data_url), 37 browser_initiated_post_data(other.browser_initiated_post_data), 38 is_cross_site_redirect(false) { 39} 40 41NavigationController::LoadURLParams& 42NavigationController::LoadURLParams::operator=( 43 const NavigationController::LoadURLParams& other) { 44 url = other.url; 45 load_type = other.load_type; 46 transition_type = other.transition_type; 47 referrer = other.referrer; 48 extra_headers = other.extra_headers; 49 is_renderer_initiated = other.is_renderer_initiated; 50 override_user_agent = other.override_user_agent; 51 transferred_global_request_id = other.transferred_global_request_id; 52 base_url_for_data_url = other.base_url_for_data_url; 53 virtual_url_for_data_url = other.virtual_url_for_data_url; 54 browser_initiated_post_data = other.browser_initiated_post_data; 55 is_cross_site_redirect = other.is_cross_site_redirect; 56 57 return *this; 58} 59 60} // namespace content 61