chromium/ios/chrome/browser/sessions/model/session_saving_scene_agent.h

// Copyright 2021 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_SESSIONS_MODEL_SESSION_SAVING_SCENE_AGENT_H_
#define IOS_CHROME_BROWSER_SESSIONS_MODEL_SESSION_SAVING_SCENE_AGENT_H_

#import <Foundation/Foundation.h>

#import "ios/chrome/browser/shared/coordinator/scene/observing_scene_state_agent.h"

@interface SessionSavingSceneAgent : ObservingSceneAgent

// Saves the scene's sessions if they haven't been saved since the last time
// the scene was foregrounded.
- (void)saveSessionsIfNeeded;

@end

#endif  // IOS_CHROME_BROWSER_SESSIONS_MODEL_SESSION_SAVING_SCENE_AGENT_H_