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

Side by Side Diff: content/public/browser/navigation_controller.cc

Issue 2038233002: Using ResourceRequestBody as the type of HTTP body outside of //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Addressed CR feedback from creis@. Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "content/public/browser/navigation_controller.h" 5 #include "content/public/browser/navigation_controller.h"
6 6
7 #include "base/memory/ref_counted_memory.h" 7 #include "base/memory/ref_counted_memory.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 NavigationController::LoadURLParams::LoadURLParams(const GURL& url) 12 NavigationController::LoadURLParams::LoadURLParams(const GURL& url)
13 : url(url), 13 : url(url),
14 load_type(LOAD_TYPE_DEFAULT), 14 load_type(LOAD_TYPE_DEFAULT),
15 transition_type(ui::PAGE_TRANSITION_LINK), 15 transition_type(ui::PAGE_TRANSITION_LINK),
16 frame_tree_node_id(-1), 16 frame_tree_node_id(-1),
17 is_renderer_initiated(false), 17 is_renderer_initiated(false),
18 override_user_agent(UA_OVERRIDE_INHERIT), 18 override_user_agent(UA_OVERRIDE_INHERIT),
19 browser_initiated_post_data(nullptr), 19 post_data(nullptr),
20 can_load_local_resources(false), 20 can_load_local_resources(false),
21 should_replace_current_entry(false), 21 should_replace_current_entry(false),
22 #if defined(OS_ANDROID) 22 #if defined(OS_ANDROID)
23 intent_received_timestamp(0), 23 intent_received_timestamp(0),
24 has_user_gesture(false), 24 has_user_gesture(false),
25 #endif 25 #endif
26 should_clear_history_list(false) { 26 should_clear_history_list(false) {
27 } 27 }
28 28
29 NavigationController::LoadURLParams::~LoadURLParams() { 29 NavigationController::LoadURLParams::~LoadURLParams() {
30 } 30 }
31 31
32 NavigationController::LoadURLParams::LoadURLParams( 32 NavigationController::LoadURLParams::LoadURLParams(
33 const NavigationController::LoadURLParams& other) 33 const NavigationController::LoadURLParams& other)
34 : url(other.url), 34 : url(other.url),
35 load_type(other.load_type), 35 load_type(other.load_type),
36 transition_type(other.transition_type), 36 transition_type(other.transition_type),
37 frame_tree_node_id(other.frame_tree_node_id), 37 frame_tree_node_id(other.frame_tree_node_id),
38 referrer(other.referrer), 38 referrer(other.referrer),
39 extra_headers(other.extra_headers), 39 extra_headers(other.extra_headers),
40 is_renderer_initiated(other.is_renderer_initiated), 40 is_renderer_initiated(other.is_renderer_initiated),
41 override_user_agent(other.override_user_agent), 41 override_user_agent(other.override_user_agent),
42 transferred_global_request_id(other.transferred_global_request_id), 42 transferred_global_request_id(other.transferred_global_request_id),
43 base_url_for_data_url(other.base_url_for_data_url), 43 base_url_for_data_url(other.base_url_for_data_url),
44 virtual_url_for_data_url(other.virtual_url_for_data_url), 44 virtual_url_for_data_url(other.virtual_url_for_data_url),
45 browser_initiated_post_data(other.browser_initiated_post_data), 45 post_data(other.post_data),
46 should_replace_current_entry(false), 46 should_replace_current_entry(false),
47 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
48 intent_received_timestamp(other.intent_received_timestamp), 48 intent_received_timestamp(other.intent_received_timestamp),
49 has_user_gesture(other.has_user_gesture), 49 has_user_gesture(other.has_user_gesture),
50 #endif 50 #endif
51 should_clear_history_list(false) { 51 should_clear_history_list(false) {
52 } 52 }
53 53
54 NavigationController::LoadURLParams& 54 NavigationController::LoadURLParams&
55 NavigationController::LoadURLParams::operator=( 55 NavigationController::LoadURLParams::operator=(
56 const NavigationController::LoadURLParams& other) { 56 const NavigationController::LoadURLParams& other) {
57 url = other.url; 57 url = other.url;
58 load_type = other.load_type; 58 load_type = other.load_type;
59 transition_type = other.transition_type; 59 transition_type = other.transition_type;
60 frame_tree_node_id = other.frame_tree_node_id; 60 frame_tree_node_id = other.frame_tree_node_id;
61 referrer = other.referrer; 61 referrer = other.referrer;
62 redirect_chain = other.redirect_chain; 62 redirect_chain = other.redirect_chain;
63 extra_headers = other.extra_headers; 63 extra_headers = other.extra_headers;
64 is_renderer_initiated = other.is_renderer_initiated; 64 is_renderer_initiated = other.is_renderer_initiated;
65 override_user_agent = other.override_user_agent; 65 override_user_agent = other.override_user_agent;
66 transferred_global_request_id = other.transferred_global_request_id; 66 transferred_global_request_id = other.transferred_global_request_id;
67 base_url_for_data_url = other.base_url_for_data_url; 67 base_url_for_data_url = other.base_url_for_data_url;
68 virtual_url_for_data_url = other.virtual_url_for_data_url; 68 virtual_url_for_data_url = other.virtual_url_for_data_url;
69 browser_initiated_post_data = other.browser_initiated_post_data; 69 post_data = other.post_data;
70 should_replace_current_entry = other.should_replace_current_entry; 70 should_replace_current_entry = other.should_replace_current_entry;
71 should_clear_history_list = other.should_clear_history_list; 71 should_clear_history_list = other.should_clear_history_list;
72 #if defined(OS_ANDROID) 72 #if defined(OS_ANDROID)
73 intent_received_timestamp = other.intent_received_timestamp; 73 intent_received_timestamp = other.intent_received_timestamp;
74 has_user_gesture = other.has_user_gesture; 74 has_user_gesture = other.has_user_gesture;
75 #endif 75 #endif
76 76
77 return *this; 77 return *this;
78 } 78 }
79 79
80 } // namespace content 80 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698