blob: 2d06cfe7427afe02897f3f94c51b96c6b90edc6f [file] [log] [blame]
// Copyright 2020 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.
#ifndef IOS_CHROME_BROWSER_BROWSING_DATA_SESSIONS_STORAGE_UTIL_H_
#define IOS_CHROME_BROWSER_BROWSING_DATA_SESSIONS_STORAGE_UTIL_H_
#import <Foundation/Foundation.h>
namespace sessions_storage_util {
// Mark the sessions with `session_ids` for their files to be removed from the
// disk at some point later.
void MarkSessionsForRemoval(NSArray<NSString*>* session_ids);
// Get the list of session ids for the sessions that was marked for removal.
NSArray<NSString*>* GetDiscardedSessions();
// Empties the list of sessions that are marked for removal.
void ResetDiscardedSessions();
} // namespace sessions_storage_util
#endif // IOS_CHROME_BROWSER_BROWSING_DATA_SESSIONS_STORAGE_UTIL_H_