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

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

Issue 10830144: Consolidate all NavigationController::LoadURL and family functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto TOT. Created 8 years, 4 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 | « content/public/browser/navigation_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698