| Index: ios/chrome/browser/sessions/session_util.h
|
| diff --git a/ios/chrome/browser/sessions/session_util.h b/ios/chrome/browser/sessions/session_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9cc003e03e9284e16ad37884509f84ec1e85d666
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/sessions/session_util.h
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2012 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_SESSIONS_SESSION_UTIL_H_
|
| +#define IOS_CHROME_BROWSER_SESSIONS_SESSION_UTIL_H_
|
| +
|
| +namespace web {
|
| +class BrowserState;
|
| +}
|
| +
|
| +// Utility method that allows to access the iOS SessionService from C++ code.
|
| +namespace session_util {
|
| +
|
| +// Deletes the file containing the commands for the last session. Finishes the
|
| +// deletion even if |browser_state| is destroyed after this call.
|
| +void DeleteLastSession(web::BrowserState* browser_state);
|
| +
|
| +} // namespace session_util
|
| +
|
| +#endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_UTIL_H_
|
|
|