OLD | NEW |
(Empty) | |
| 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 } |
| 19 |
| 20 NavigationController::LoadURLParams::~LoadURLParams() { |
| 21 } |
| 22 |
| 23 NavigationController::LoadURLParams::LoadURLParams( |
| 24 const NavigationController::LoadURLParams& other) |
| 25 : url(other.url), |
| 26 load_type(other.load_type), |
| 27 transition_type(other.transition_type), |
| 28 referrer(other.referrer), |
| 29 extra_headers(other.extra_headers), |
| 30 is_renderer_initiated(other.is_renderer_initiated), |
| 31 override_user_agent(other.override_user_agent), |
| 32 transferred_global_request_id(other.transferred_global_request_id), |
| 33 base_url_for_data_url(other.base_url_for_data_url), |
| 34 virtual_url_for_data_url(other.virtual_url_for_data_url), |
| 35 browser_initiated_post_data(other.browser_initiated_post_data) { |
| 36 } |
| 37 |
| 38 NavigationController::LoadURLParams& |
| 39 NavigationController::LoadURLParams::operator=( |
| 40 const NavigationController::LoadURLParams& other) { |
| 41 url = other.url; |
| 42 load_type = other.load_type; |
| 43 transition_type = other.transition_type; |
| 44 referrer = other.referrer; |
| 45 extra_headers = other.extra_headers; |
| 46 is_renderer_initiated = other.is_renderer_initiated; |
| 47 override_user_agent = other.override_user_agent; |
| 48 transferred_global_request_id = other.transferred_global_request_id; |
| 49 base_url_for_data_url = other.base_url_for_data_url; |
| 50 virtual_url_for_data_url = other.virtual_url_for_data_url; |
| 51 browser_initiated_post_data = other.browser_initiated_post_data; |
| 52 |
| 53 return *this; |
| 54 } |
| 55 |
| 56 } // namespace content |
OLD | NEW |