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

Unified Diff: components/sessions/base_session_service_delegate.h

Issue 1361613002: Move all core files in //components/sessions into core/ subdir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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: components/sessions/base_session_service_delegate.h
diff --git a/components/sessions/base_session_service_delegate.h b/components/sessions/base_session_service_delegate.h
deleted file mode 100644
index 914ba1b04a4801f6d78e95b586eacde84ff0255f..0000000000000000000000000000000000000000
--- a/components/sessions/base_session_service_delegate.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 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 COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_H_
-#define COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_H_
-
-#include "base/memory/scoped_ptr.h"
-
-namespace base {
-class SequencedWorkerPool;
-}
-
-namespace sessions {
-
-// The BaseSessionServiceDelegate decouples the BaseSessionService from
-// chrome/content dependencies.
-class BaseSessionServiceDelegate {
- public:
- BaseSessionServiceDelegate() {}
-
- // Get the sequenced worker pool for running tasks on the backend thread as
- // long as the system is not shutting down.
- virtual base::SequencedWorkerPool* GetBlockingPool() = 0;
-
- // 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() {}
-
- // Called when commands were saved to disc.
- virtual void OnSavedCommands() {}
-
- protected:
- virtual ~BaseSessionServiceDelegate() {}
-};
-
-} // namespace sessions
-
-#endif // COMPONENTS_SESSIONS_BASE_SESSION_SERVICE_DELEGATE_H_
« no previous file with comments | « components/sessions/base_session_service_commands.cc ('k') | components/sessions/base_session_service_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698