- add sources.
[platform/framework/web/crosswalk.git] / src / content / public / browser / navigation_controller.cc
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
9 namespace content {
10
11 NavigationController::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       should_replace_current_entry(false),
20       should_clear_history_list(false)  {
21 }
22
23 NavigationController::LoadURLParams::~LoadURLParams() {
24 }
25
26 NavigationController::LoadURLParams::LoadURLParams(
27     const NavigationController::LoadURLParams& other)
28     : url(other.url),
29       load_type(other.load_type),
30       transition_type(other.transition_type),
31       referrer(other.referrer),
32       extra_headers(other.extra_headers),
33       is_renderer_initiated(other.is_renderer_initiated),
34       override_user_agent(other.override_user_agent),
35       transferred_global_request_id(other.transferred_global_request_id),
36       base_url_for_data_url(other.base_url_for_data_url),
37       virtual_url_for_data_url(other.virtual_url_for_data_url),
38       browser_initiated_post_data(other.browser_initiated_post_data),
39       should_replace_current_entry(false),
40       should_clear_history_list(false) {
41 }
42
43 NavigationController::LoadURLParams&
44 NavigationController::LoadURLParams::operator=(
45     const NavigationController::LoadURLParams& other) {
46   url = other.url;
47   load_type = other.load_type;
48   transition_type = other.transition_type;
49   referrer = other.referrer;
50   redirect_chain = other.redirect_chain;
51   extra_headers = other.extra_headers;
52   is_renderer_initiated = other.is_renderer_initiated;
53   override_user_agent = other.override_user_agent;
54   transferred_global_request_id = other.transferred_global_request_id;
55   base_url_for_data_url = other.base_url_for_data_url;
56   virtual_url_for_data_url = other.virtual_url_for_data_url;
57   browser_initiated_post_data = other.browser_initiated_post_data;
58   should_replace_current_entry = other.should_replace_current_entry;
59   should_clear_history_list = other.should_clear_history_list;
60
61   return *this;
62 }
63
64 }  // namespace content