Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2932)

Unified Diff: chrome/browser/sessions/base_session_service_delegate.h

Issue 672083002: Refactoring of SessionService to get componentized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more self nit Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sessions/base_session_service_delegate.h
diff --git a/chrome/browser/sessions/base_session_service_delegate.h b/chrome/browser/sessions/base_session_service_delegate.h
index 336586384430f93573778f0ab00ab905d265da3f..70ed1a042fef46e64c67595958f750e36ccf3ff0 100644
--- a/chrome/browser/sessions/base_session_service_delegate.h
+++ b/chrome/browser/sessions/base_session_service_delegate.h
@@ -18,7 +18,6 @@ class GURL;
class BaseSessionServiceDelegate {
public:
BaseSessionServiceDelegate() {}
- virtual ~BaseSessionServiceDelegate() {}
// Get the sequenced worker pool for running tasks on the backend thread as
// long as the system is not shutting down.
@@ -30,6 +29,15 @@ class BaseSessionServiceDelegate {
// Returns true if save operations can be performed as a delayed task - which
// is usually only used by unit tests.
virtual bool ShouldUseDelayedSave() = 0;
+
+ // Called when commands are about to be written to disc.
+ virtual void OnWillSaveCommands() = 0;
+
+ // Called when commands were saved to disc.
+ virtual void OnSavedCommands() = 0;
+
+ protected:
+ virtual ~BaseSessionServiceDelegate() {}
};
#endif // CHROME_BROWSER_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698