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

Side by Side Diff: components/dom_distiller/core/article_distillation_update.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, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/dom_distiller/core/article_distillation_update.h" 5 #include "components/dom_distiller/core/article_distillation_update.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace dom_distiller { 9 namespace dom_distiller {
10 10
11 ArticleDistillationUpdate::ArticleDistillationUpdate( 11 ArticleDistillationUpdate::ArticleDistillationUpdate(
12 const std::vector<scoped_refptr<RefCountedPageProto> >& pages, 12 const std::vector<scoped_refptr<RefCountedPageProto> >& pages,
13 bool has_next_page, 13 bool has_next_page,
14 bool has_prev_page) 14 bool has_prev_page)
15 : has_next_page_(has_next_page), 15 : has_next_page_(has_next_page),
16 has_prev_page_(has_prev_page), 16 has_prev_page_(has_prev_page),
17 pages_(pages) {} 17 pages_(pages) {}
18 18
19 ArticleDistillationUpdate::ArticleDistillationUpdate(
20 const ArticleDistillationUpdate& other) = default;
21
19 ArticleDistillationUpdate::~ArticleDistillationUpdate() {} 22 ArticleDistillationUpdate::~ArticleDistillationUpdate() {}
20 23
21 const DistilledPageProto& ArticleDistillationUpdate::GetDistilledPage( 24 const DistilledPageProto& ArticleDistillationUpdate::GetDistilledPage(
22 size_t index) const { 25 size_t index) const {
23 DCHECK_GT(pages_.size(), index); 26 DCHECK_GT(pages_.size(), index);
24 return pages_[index]->data; 27 return pages_[index]->data;
25 } 28 }
26 29
27 } // namespace dom_distiller 30 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698