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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_controller.cc
diff --git a/content/public/browser/navigation_controller.cc b/content/public/browser/navigation_controller.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a7f7bf6e1f34a31201cbaa3725d79ad78581b40d
--- /dev/null
+++ b/content/public/browser/navigation_controller.cc
@@ -0,0 +1,56 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/navigation_controller.h"
+
+#include "base/memory/ref_counted_memory.h"
+
+namespace content {
+
+NavigationController::LoadURLParams::LoadURLParams(const GURL& url)
+ : url(url),
+ load_type(LOAD_TYPE_DEFAULT),
+ transition_type(PAGE_TRANSITION_LINK),
+ is_renderer_initiated(false),
+ override_user_agent(UA_OVERRIDE_INHERIT),
+ browser_initiated_post_data(NULL) {
+}
+
+NavigationController::LoadURLParams::~LoadURLParams() {
+}
+
+NavigationController::LoadURLParams::LoadURLParams(
+ const NavigationController::LoadURLParams& other)
+ : url(other.url),
+ load_type(other.load_type),
+ transition_type(other.transition_type),
+ referrer(other.referrer),
+ extra_headers(other.extra_headers),
+ is_renderer_initiated(other.is_renderer_initiated),
+ override_user_agent(other.override_user_agent),
+ transferred_global_request_id(other.transferred_global_request_id),
+ base_url_for_data_url(other.base_url_for_data_url),
+ virtual_url_for_data_url(other.virtual_url_for_data_url),
+ browser_initiated_post_data(other.browser_initiated_post_data) {
+}
+
+NavigationController::LoadURLParams&
+NavigationController::LoadURLParams::operator=(
+ const NavigationController::LoadURLParams& other) {
+ url = other.url;
+ load_type = other.load_type;
+ transition_type = other.transition_type;
+ referrer = other.referrer;
+ extra_headers = other.extra_headers;
+ is_renderer_initiated = other.is_renderer_initiated;
+ override_user_agent = other.override_user_agent;
+ transferred_global_request_id = other.transferred_global_request_id;
+ base_url_for_data_url = other.base_url_for_data_url;
+ virtual_url_for_data_url = other.virtual_url_for_data_url;
+ browser_initiated_post_data = other.browser_initiated_post_data;
+
+ return *this;
+}
+
+} // namespace content
« 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