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
   32
   33
   34
   35
   36
   37

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

// Copyright 2019 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/content_index_provider.h"

namespace content {

ContentIndexEntry::ContentIndexEntry(
    int64_t service_worker_registration_id,
    blink::mojom::ContentDescriptionPtr description,
    const GURL& launch_url,
    base::Time registration_time,
    bool is_top_level_context)
    : service_worker_registration_id(service_worker_registration_id),
      description(std::move(description)),
      launch_url(launch_url),
      registration_time(registration_time),
      is_top_level_context(is_top_level_context) {}

ContentIndexEntry::ContentIndexEntry(ContentIndexEntry&& other) = default;

ContentIndexEntry& ContentIndexEntry::operator=(ContentIndexEntry&& other) {
  service_worker_registration_id = other.service_worker_registration_id;
  description = std::move(other.description);
  launch_url = std::move(other.launch_url);
  registration_time = other.registration_time;
  return *this;
}

ContentIndexEntry::~ContentIndexEntry() = default;

ContentIndexProvider::ContentIndexProvider() = default;

ContentIndexProvider::~ContentIndexProvider() = default;

}  // namespace content