OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_SESSIONS_SESSION_UTIL_H_ |
| 6 #define IOS_CHROME_BROWSER_SESSIONS_SESSION_UTIL_H_ |
| 7 |
| 8 namespace web { |
| 9 class BrowserState; |
| 10 } |
| 11 |
| 12 // Utility method that allows to access the iOS SessionService from C++ code. |
| 13 namespace session_util { |
| 14 |
| 15 // Deletes the file containing the commands for the last session. Finishes the |
| 16 // deletion even if |browser_state| is destroyed after this call. |
| 17 void DeleteLastSession(web::BrowserState* browser_state); |
| 18 |
| 19 } // namespace session_util |
| 20 |
| 21 #endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_UTIL_H_ |
OLD | NEW |