1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31

content / public / browser / presentation_request.cc [blame]

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/public/browser/presentation_request.h"

namespace content {

PresentationRequest::PresentationRequest(
    const GlobalRenderFrameHostId& render_frame_host_id,
    const std::vector<GURL>& presentation_urls,
    const url::Origin& frame_origin)
    : render_frame_host_id(render_frame_host_id),
      presentation_urls(presentation_urls),
      frame_origin(frame_origin) {}

PresentationRequest::~PresentationRequest() = default;

PresentationRequest::PresentationRequest(const PresentationRequest& other) =
    default;

PresentationRequest& PresentationRequest::operator=(
    const PresentationRequest& other) = default;

bool PresentationRequest::operator==(const PresentationRequest& other) const {
  return render_frame_host_id == other.render_frame_host_id &&
         presentation_urls == other.presentation_urls &&
         frame_origin == other.frame_origin;
}

}  // namespace content