article_entry.cc 627 B

123456789101112131415161718192021222324
  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
  3. // found in the LICENSE file.
  4. #include "components/dom_distiller/core/article_entry.h"
  5. namespace dom_distiller {
  6. ArticleEntry::ArticleEntry() = default;
  7. ArticleEntry::ArticleEntry(const ArticleEntry&) = default;
  8. ArticleEntry::~ArticleEntry() = default;
  9. bool IsEntryValid(const ArticleEntry& entry) {
  10. if (entry.entry_id.empty())
  11. return false;
  12. for (const GURL& page : entry.pages) {
  13. if (!page.is_valid())
  14. return false;
  15. }
  16. return true;
  17. }
  18. } // namespace dom_distiller