blob: 6a29bed7b08851d911518558787f0918e1091182 [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// 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_