15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "content/public/browser/navigation_controller.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/memory/ref_counted_memory.h"
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace content {
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)NavigationController::LoadURLParams::LoadURLParams(const GURL& url)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    : url(url),
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      load_type(LOAD_TYPE_DEFAULT),
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      transition_type(PAGE_TRANSITION_LINK),
15f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)      frame_tree_node_id(-1),
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      is_renderer_initiated(false),
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      override_user_agent(UA_OVERRIDE_INHERIT),
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      browser_initiated_post_data(NULL),
192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)      can_load_local_resources(false),
20ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch      should_replace_current_entry(false),
21c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)      should_clear_history_list(false)  {
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)NavigationController::LoadURLParams::~LoadURLParams() {
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)NavigationController::LoadURLParams::LoadURLParams(
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    const NavigationController::LoadURLParams& other)
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    : url(other.url),
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      load_type(other.load_type),
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      transition_type(other.transition_type),
32f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)      frame_tree_node_id(other.frame_tree_node_id),
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      referrer(other.referrer),
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      extra_headers(other.extra_headers),
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      is_renderer_initiated(other.is_renderer_initiated),
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      override_user_agent(other.override_user_agent),
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      transferred_global_request_id(other.transferred_global_request_id),
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      base_url_for_data_url(other.base_url_for_data_url),
395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)      virtual_url_for_data_url(other.virtual_url_for_data_url),
402a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)      browser_initiated_post_data(other.browser_initiated_post_data),
41ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch      should_replace_current_entry(false),
42c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)      should_clear_history_list(false) {
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)NavigationController::LoadURLParams&
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)NavigationController::LoadURLParams::operator=(
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    const NavigationController::LoadURLParams& other) {
485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  url = other.url;
495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  load_type = other.load_type;
505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  transition_type = other.transition_type;
51f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)  frame_tree_node_id = other.frame_tree_node_id;
525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  referrer = other.referrer;
531e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  redirect_chain = other.redirect_chain;
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  extra_headers = other.extra_headers;
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  is_renderer_initiated = other.is_renderer_initiated;
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  override_user_agent = other.override_user_agent;
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  transferred_global_request_id = other.transferred_global_request_id;
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  base_url_for_data_url = other.base_url_for_data_url;
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  virtual_url_for_data_url = other.virtual_url_for_data_url;
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  browser_initiated_post_data = other.browser_initiated_post_data;
61ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch  should_replace_current_entry = other.should_replace_current_entry;
62c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)  should_clear_history_list = other.should_clear_history_list;
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  return *this;
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace content
68