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

Unified Diff: ios/web/navigation/web_load_params.mm

Issue 1028603004: Upstream ios/web/navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-testing
Patch Set: Rebase and resync Created 5 years, 9 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 | « ios/web/navigation/web_load_params.h ('k') | ios/web/public/navigation_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/web_load_params.mm
diff --git a/ios/web/navigation/web_load_params.mm b/ios/web/navigation/web_load_params.mm
new file mode 100644
index 0000000000000000000000000000000000000000..2c5a82c3ae8a1eb6f23fd2608dd1dede1f25661b
--- /dev/null
+++ b/ios/web/navigation/web_load_params.mm
@@ -0,0 +1,42 @@
+// Copyright 2013 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 "ios/web/navigation/web_load_params.h"
+
+namespace web {
+
+WebLoadParams::WebLoadParams(const GURL& url)
+ : url(url),
+ transition_type(ui::PAGE_TRANSITION_LINK),
+ is_renderer_initiated(false),
+ cache_mode(net::RequestTracker::CACHE_NORMAL),
+ post_data(NULL) {
+}
+
+WebLoadParams::~WebLoadParams() {}
+
+WebLoadParams::WebLoadParams(const WebLoadParams& other)
+ : url(other.url),
+ referrer(other.referrer),
+ transition_type(other.transition_type),
+ is_renderer_initiated(other.is_renderer_initiated),
+ cache_mode(other.cache_mode),
+ extra_headers([other.extra_headers copy]),
+ post_data([other.post_data copy]) {
+}
+
+WebLoadParams& WebLoadParams::operator=(
+ const WebLoadParams& other) {
+ url = other.url;
+ referrer = other.referrer;
+ is_renderer_initiated = other.is_renderer_initiated;
+ transition_type = other.transition_type;
+ cache_mode = other.cache_mode;
+ extra_headers.reset([other.extra_headers copy]);
+ post_data.reset([other.post_data copy]);
+
+ return *this;
+}
+
+} // namespace web
« no previous file with comments | « ios/web/navigation/web_load_params.h ('k') | ios/web/public/navigation_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698