Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: ios/web/navigation/web_load_params.mm

Issue 1836543002: [ios] Removed RequestTracker dependency from WebLoadParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/navigation/web_load_params.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/web/navigation/web_load_params.h" 5 #include "ios/web/navigation/web_load_params.h"
6 6
7 namespace web { 7 namespace web {
8 8
9 WebLoadParams::WebLoadParams(const GURL& url) 9 WebLoadParams::WebLoadParams(const GURL& url)
10 : url(url), 10 : url(url),
11 transition_type(ui::PAGE_TRANSITION_LINK), 11 transition_type(ui::PAGE_TRANSITION_LINK),
12 is_renderer_initiated(false), 12 is_renderer_initiated(false),
13 cache_mode(net::RequestTracker::CACHE_NORMAL),
14 post_data(NULL) { 13 post_data(NULL) {
15 } 14 }
16 15
17 WebLoadParams::~WebLoadParams() {} 16 WebLoadParams::~WebLoadParams() {}
18 17
19 WebLoadParams::WebLoadParams(const WebLoadParams& other) 18 WebLoadParams::WebLoadParams(const WebLoadParams& other)
20 : url(other.url), 19 : url(other.url),
21 referrer(other.referrer), 20 referrer(other.referrer),
22 transition_type(other.transition_type), 21 transition_type(other.transition_type),
23 is_renderer_initiated(other.is_renderer_initiated), 22 is_renderer_initiated(other.is_renderer_initiated),
24 cache_mode(other.cache_mode),
25 extra_headers([other.extra_headers copy]), 23 extra_headers([other.extra_headers copy]),
26 post_data([other.post_data copy]) { 24 post_data([other.post_data copy]) {
27 } 25 }
28 26
29 WebLoadParams& WebLoadParams::operator=( 27 WebLoadParams& WebLoadParams::operator=(
30 const WebLoadParams& other) { 28 const WebLoadParams& other) {
31 url = other.url; 29 url = other.url;
32 referrer = other.referrer; 30 referrer = other.referrer;
33 is_renderer_initiated = other.is_renderer_initiated; 31 is_renderer_initiated = other.is_renderer_initiated;
34 transition_type = other.transition_type; 32 transition_type = other.transition_type;
35 cache_mode = other.cache_mode;
36 extra_headers.reset([other.extra_headers copy]); 33 extra_headers.reset([other.extra_headers copy]);
37 post_data.reset([other.post_data copy]); 34 post_data.reset([other.post_data copy]);
38 35
39 return *this; 36 return *this;
40 } 37 }
41 38
42 } // namespace web 39 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/navigation/web_load_params.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698