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 cache_mode(net::RequestTracker::CACHE_NORMAL), |
| 14 post_data(NULL) { |
| 15 } |
| 16 |
| 17 WebLoadParams::~WebLoadParams() {} |
| 18 |
| 19 WebLoadParams::WebLoadParams(const WebLoadParams& other) |
| 20 : url(other.url), |
| 21 referrer(other.referrer), |
| 22 transition_type(other.transition_type), |
| 23 is_renderer_initiated(other.is_renderer_initiated), |
| 24 cache_mode(other.cache_mode), |
| 25 extra_headers([other.extra_headers copy]), |
| 26 post_data([other.post_data copy]) { |
| 27 } |
| 28 |
| 29 WebLoadParams& WebLoadParams::operator=( |
| 30 const WebLoadParams& other) { |
| 31 url = other.url; |
| 32 referrer = other.referrer; |
| 33 is_renderer_initiated = other.is_renderer_initiated; |
| 34 transition_type = other.transition_type; |
| 35 cache_mode = other.cache_mode; |
| 36 extra_headers.reset([other.extra_headers copy]); |
| 37 post_data.reset([other.post_data copy]); |
| 38 |
| 39 return *this; |
| 40 } |
| 41 |
| 42 } // namespace web |
OLD | NEW |