| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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 "ios/web/navigation/web_load_params.h" | |
| 6 | |
| 7 namespace web { | |
| 8 | |
| 9 WebLoadParams::WebLoadParams(const GURL& url) | |
| 10 : url(url), | |
| 11 transition_type(ui::PAGE_TRANSITION_LINK), | |
| 12 is_renderer_initiated(false), | |
| 13 post_data(NULL) { | |
| 14 } | |
| 15 | |
| 16 WebLoadParams::~WebLoadParams() {} | |
| 17 | |
| 18 WebLoadParams::WebLoadParams(const WebLoadParams& other) | |
| 19 : url(other.url), | |
| 20 referrer(other.referrer), | |
| 21 transition_type(other.transition_type), | |
| 22 is_renderer_initiated(other.is_renderer_initiated), | |
| 23 extra_headers([other.extra_headers copy]), | |
| 24 post_data([other.post_data copy]) { | |
| 25 } | |
| 26 | |
| 27 WebLoadParams& WebLoadParams::operator=( | |
| 28 const WebLoadParams& other) { | |
| 29 url = other.url; | |
| 30 referrer = other.referrer; | |
| 31 is_renderer_initiated = other.is_renderer_initiated; | |
| 32 transition_type = other.transition_type; | |
| 33 extra_headers.reset([other.extra_headers copy]); | |
| 34 post_data.reset([other.post_data copy]); | |
| 35 | |
| 36 return *this; | |
| 37 } | |
| 38 | |
| 39 } // namespace web | |
| OLD | NEW |