blob: f30ccfe6e43fa1038df199028e9d0b49bbc3b953 [file] [log] [blame]
// Copyright 2015 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_SESSIONS_CORE_SESSION_CONSTANTS_H_
#define COMPONENTS_SESSIONS_CORE_SESSION_CONSTANTS_H_
#include "base/files/file_path.h"
#include "components/sessions/core/sessions_export.h"
namespace sessions {
// Directory under the profile directory to store session data.
// Added in Chrome 85.
extern const base::FilePath::StringViewType SESSIONS_EXPORT kSessionsDirectory;
// File name prefix for a type of TAB.
// Added in Chrome 85.
extern const base::FilePath::CharType SESSIONS_EXPORT
kTabSessionFileNamePrefix[];
// File name prefix for a type of SESSION.
// Added in Chrome 85.
extern const base::FilePath::CharType SESSIONS_EXPORT kSessionFileNamePrefix[];
// File name prefix for a type of APP.
// Added in Chrome 91.
extern const base::FilePath::CharType SESSIONS_EXPORT
kAppSessionFileNamePrefix[];
// Separator between the file name (such as `kSessionFileNamePrefix`) and the
// timestamp.
extern const base::FilePath::CharType SESSIONS_EXPORT kTimestampSeparator[];
// TODO(sky): remove the legacy files around ~1/2022.
// Legacy file names (current and previous) for a type of TAB.
// Used before Chrome 85.
extern const base::FilePath::StringViewType SESSIONS_EXPORT
kLegacyCurrentTabSessionFileName;
extern const base::FilePath::StringViewType SESSIONS_EXPORT
kLegacyLastTabSessionFileName;
// Legacy file names (current and previous) for a type of SESSION.
// Used before Chrome 85.
extern const base::FilePath::StringViewType SESSIONS_EXPORT
kLegacyCurrentSessionFileName;
extern const base::FilePath::StringViewType SESSIONS_EXPORT
kLegacyLastSessionFileName;
// The maximum number of navigation entries in each direction to persist.
extern const int SESSIONS_EXPORT gMaxPersistNavigationCount;
} // namespace sessions
#endif // COMPONENTS_SESSIONS_CORE_SESSION_CONSTANTS_H_