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

Side by Side Diff: components/sessions/core/serialized_navigation_entry.cc

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
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 "components/sessions/core/serialized_navigation_entry.h" 5 #include "components/sessions/core/serialized_navigation_entry.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/pickle.h" 9 #include "base/pickle.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 12 matching lines...) Expand all
23 has_post_data_(false), 23 has_post_data_(false),
24 post_id_(-1), 24 post_id_(-1),
25 is_overriding_user_agent_(false), 25 is_overriding_user_agent_(false),
26 http_status_code_(0), 26 http_status_code_(0),
27 is_restored_(false), 27 is_restored_(false),
28 blocked_state_(STATE_INVALID) { 28 blocked_state_(STATE_INVALID) {
29 referrer_policy_ = 29 referrer_policy_ =
30 SerializedNavigationDriver::Get()->GetDefaultReferrerPolicy(); 30 SerializedNavigationDriver::Get()->GetDefaultReferrerPolicy();
31 } 31 }
32 32
33 SerializedNavigationEntry::SerializedNavigationEntry(
34 const SerializedNavigationEntry& other) = default;
35
33 SerializedNavigationEntry::~SerializedNavigationEntry() {} 36 SerializedNavigationEntry::~SerializedNavigationEntry() {}
34 37
35 SerializedNavigationEntry SerializedNavigationEntry::FromSyncData( 38 SerializedNavigationEntry SerializedNavigationEntry::FromSyncData(
36 int index, 39 int index,
37 const sync_pb::TabNavigation& sync_data) { 40 const sync_pb::TabNavigation& sync_data) {
38 SerializedNavigationEntry navigation; 41 SerializedNavigationEntry navigation;
39 navigation.index_ = index; 42 navigation.index_ = index;
40 navigation.unique_id_ = sync_data.unique_id(); 43 navigation.unique_id_ = sync_data.unique_id();
41 if (sync_data.has_correct_referrer_policy()) { 44 if (sync_data.has_correct_referrer_policy()) {
42 navigation.referrer_url_ = GURL(sync_data.referrer()); 45 navigation.referrer_url_ = GURL(sync_data.referrer());
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 redirect_chain_[last_entry].spec()); 465 redirect_chain_[last_entry].spec());
463 } 466 }
464 } 467 }
465 468
466 sync_data.set_is_restored(is_restored_); 469 sync_data.set_is_restored(is_restored_);
467 470
468 return sync_data; 471 return sync_data;
469 } 472 }
470 473
471 } // namespace sessions 474 } // namespace sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698