chromium/components/send_tab_to_self/send_tab_to_self_entry.cc

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

#include "components/send_tab_to_self/send_tab_to_self_entry.h"

#include <memory>

#include "base/check.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "components/send_tab_to_self/proto/send_tab_to_self.pb.h"
#include "components/sync/protocol/send_tab_to_self_specifics.pb.h"

namespace send_tab_to_self {

namespace {

// Converts a time object to the format used in sync protobufs (ms since the
// Windows epoch).
int64_t TimeToProtoTime(const base::Time t) {}

// Converts a time field from sync protobufs to a time object.
base::Time ProtoTimeToTime(int64_t proto_t) {}

}  // namespace

SendTabToSelfEntry::SendTabToSelfEntry(
    const std::string& guid,
    const GURL& url,
    const std::string& title,
    base::Time shared_time,
    const std::string& device_name,
    const std::string& target_device_sync_cache_guid)
    :{}

SendTabToSelfEntry::~SendTabToSelfEntry() {}

SendTabToSelfEntry::SendTabToSelfEntry(const SendTabToSelfEntry&) = default;

const std::string& SendTabToSelfEntry::GetGUID() const {}

const GURL& SendTabToSelfEntry::GetURL() const {}

const std::string& SendTabToSelfEntry::GetTitle() const {}

base::Time SendTabToSelfEntry::GetSharedTime() const {}

const std::string& SendTabToSelfEntry::GetDeviceName() const {}

const std::string& SendTabToSelfEntry::GetTargetDeviceSyncCacheGuid() const {}

bool SendTabToSelfEntry::IsOpened() const {}

void SendTabToSelfEntry::MarkOpened() {}

void SendTabToSelfEntry::SetNotificationDismissed(bool notification_dismissed) {}

bool SendTabToSelfEntry::GetNotificationDismissed() const {}

SendTabToSelfLocal SendTabToSelfEntry::AsLocalProto() const {}

std::unique_ptr<SendTabToSelfEntry> SendTabToSelfEntry::FromProto(
    const sync_pb::SendTabToSelfSpecifics& pb_entry,
    base::Time now) {}

std::unique_ptr<SendTabToSelfEntry> SendTabToSelfEntry::FromLocalProto(
    const SendTabToSelfLocal& local_entry,
    base::Time now) {}

bool SendTabToSelfEntry::IsExpired(base::Time current_time) const {}

std::unique_ptr<SendTabToSelfEntry> SendTabToSelfEntry::FromRequiredFields(
    const std::string& guid,
    const GURL& url,
    const std::string& target_device_sync_cache_guid) {}

}  // namespace send_tab_to_self