blob: c0520202cf9f607a88c1cd6dbd360b70833aeb31 [file] [log] [blame] [edit]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/fileapi/recent_source.h"
#include <utility>
#include "base/check.h"
namespace chromeos {
RecentSource::Params::Params(storage::FileSystemContext* file_system_context,
const GURL& origin,
size_t max_files,
const base::Time& cutoff_time,
FileType file_type,
GetRecentFilesCallback callback)
: file_system_context_(file_system_context),
origin_(origin),
max_files_(max_files),
cutoff_time_(cutoff_time),
file_type_(file_type),
callback_(std::move(callback)) {
DCHECK(!callback_.is_null());
}
RecentSource::Params::Params(Params&& other) = default;
RecentSource::Params::~Params() = default;
RecentSource::RecentSource() = default;
RecentSource::~RecentSource() = default;
} // namespace chromeos