chromium/components/offline_pages/core/model/store_visuals_task.h

// 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.

#ifndef COMPONENTS_OFFLINE_PAGES_CORE_MODEL_STORE_VISUALS_TASK_H_
#define COMPONENTS_OFFLINE_PAGES_CORE_MODEL_STORE_VISUALS_TASK_H_

#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "components/offline_pages/core/offline_page_visuals.h"
#include "components/offline_pages/task/task.h"

namespace offline_pages {

extern const base::TimeDelta kVisualsExpirationDelta;

class OfflinePageMetadataStore;

// StoreVisualsTask stores a thumbnail and favicon in the page_thumbnails table.
// Only non-empty values for |thumbnail| and |favicon| are stored; passing empty
// strings will not overwrite existing thumbnails and favicons.
class StoreVisualsTask : public Task {};

}  // namespace offline_pages

#endif  // COMPONENTS_OFFLINE_PAGES_CORE_MODEL_STORE_VISUALS_TASK_H_