// Copyright 2006 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_COMMAND_H_ #define COMPONENTS_SESSIONS_CORE_SESSION_COMMAND_H_ #include <stddef.h> #include <stdint.h> #include <string> #include <string_view> #include "components/sessions/core/sessions_export.h" namespace base { class Pickle; } namespace sessions { // SessionCommand contains a command id and arbitrary chunk of data. The id // and chunk of data are specific to the service creating them. // // Both TabRestoreService and SessionService use SessionCommands to represent // state on disk. // // There are two ways to create a SessionCommand: // . Specify the size of the data block to create. This is useful for // commands that have a fixed size. // . From a pickle, this is useful for commands whose length varies. class SESSIONS_EXPORT SessionCommand { … }; } // namespace sessions #endif // COMPONENTS_SESSIONS_CORE_SESSION_COMMAND_H_