content_capture_frame.cc 865 B

123456789101112131415161718192021222324252627
  1. // Copyright 2021 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/content_capture/browser/content_capture_frame.h"
  5. namespace content_capture {
  6. ContentCaptureFrame::ContentCaptureFrame() = default;
  7. ContentCaptureFrame::ContentCaptureFrame(const ContentCaptureFrame& data) =
  8. default;
  9. ContentCaptureFrame::ContentCaptureFrame(const ContentCaptureData& data) {
  10. url = data.value;
  11. bounds = data.bounds;
  12. children = data.children;
  13. }
  14. ContentCaptureFrame::~ContentCaptureFrame() = default;
  15. bool ContentCaptureFrame::operator==(const ContentCaptureFrame& other) const {
  16. return id == other.id && url == other.url && bounds == other.bounds &&
  17. children == other.children && title == other.title;
  18. }
  19. } // namespace content_capture